style: fix linting issues met ESLint
This commit is contained in:
parent
47e47323d3
commit
1b18338c78
15 changed files with 34 additions and 34 deletions
|
@ -24,7 +24,7 @@ describe('AnswerRepository', () => {
|
|||
const a1 = getAnswer01();
|
||||
const a2 = getAnswer02();
|
||||
|
||||
const answers = await answerRepository.findAllAnswersToQuestion(question!);
|
||||
const answers = await answerRepository.findAllAnswersToQuestion(question);
|
||||
|
||||
expect(answers).toBeTruthy();
|
||||
expect(answers).toHaveLength(2);
|
||||
|
@ -38,7 +38,7 @@ describe('AnswerRepository', () => {
|
|||
|
||||
await answerRepository.createAnswer({
|
||||
toQuestion: question,
|
||||
author: teacher!,
|
||||
author: teacher,
|
||||
content: 'created answer',
|
||||
});
|
||||
|
||||
|
|
|
@ -48,8 +48,8 @@ describe('QuestionRepository', () => {
|
|||
const group = getTestGroup01();
|
||||
await questionRepository.createQuestion({
|
||||
loId: id,
|
||||
inGroup: group!,
|
||||
author: student!,
|
||||
inGroup: group,
|
||||
author: student,
|
||||
content: 'question?',
|
||||
});
|
||||
const question = await questionRepository.findAllQuestionsAboutLearningObject(id);
|
||||
|
@ -66,7 +66,7 @@ describe('QuestionRepository', () => {
|
|||
language: testLearningObject05.language,
|
||||
version: testLearningObject05.version,
|
||||
};
|
||||
const result = await questionRepository.findAllQuestionsAboutLearningObjectInAssignment(loId, assignment!);
|
||||
const result = await questionRepository.findAllQuestionsAboutLearningObjectInAssignment(loId, assignment);
|
||||
sortQuestions(result);
|
||||
|
||||
expect(result).toHaveLength(3);
|
||||
|
@ -94,7 +94,7 @@ describe('QuestionRepository', () => {
|
|||
};
|
||||
const assignment = getAssignment01();
|
||||
|
||||
const result = await questionRepository.findAllQuestionsAboutLearningObjectInAssignment(loId, assignment!, getTool().username);
|
||||
const result = await questionRepository.findAllQuestionsAboutLearningObjectInAssignment(loId, assignment, getTool().username);
|
||||
// (student Tool is in group #2)
|
||||
|
||||
expect(result).toHaveLength(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue