test: teruggeven assignments zijn de juiste
This commit is contained in:
parent
946c233a52
commit
5f55da987c
2 changed files with 4 additions and 3 deletions
|
@ -35,6 +35,7 @@ describe('AssignmentRepository', () => {
|
|||
|
||||
expect(assignments).toBeTruthy();
|
||||
expect(assignments).toHaveLength(1);
|
||||
expect(assignments[0].title).toBe('tool');
|
||||
});
|
||||
|
||||
it('should not find removed assignment', async () => {
|
||||
|
|
|
@ -35,14 +35,14 @@ describe('QuestionRepository', () => {
|
|||
|
||||
// it('should create new question', async () => {
|
||||
// const id = new LearningObjectIdentifier('id03', Language.English, '1');
|
||||
// const student = await StudentRepository.findByUsername('Noordkaap');
|
||||
// await QuestionRepository.createQuestion({
|
||||
// const student = await studentRepository.findByUsername('Noordkaap');
|
||||
// await questionRepository.createQuestion({
|
||||
// loId: id,
|
||||
// author: student!,
|
||||
// content: 'question?',
|
||||
// });
|
||||
// const question =
|
||||
// await QuestionRepository.findAllQuestionsAboutLearningObject(id);
|
||||
// await questionRepository.findAllQuestionsAboutLearningObject(id);
|
||||
|
||||
// expect(question).toBeTruthy();
|
||||
// expect(question).toHaveLength(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue