diff --git a/backend/tests/data/attachmentsts.test.ts b/backend/tests/data/attachments.test.ts similarity index 67% rename from backend/tests/data/attachmentsts.test.ts rename to backend/tests/data/attachments.test.ts index 0ac97aa6..00342355 100644 --- a/backend/tests/data/attachmentsts.test.ts +++ b/backend/tests/data/attachments.test.ts @@ -23,17 +23,17 @@ describe('AttachmentRepository', () => { expect(true); }); - // it('should return the requested attachment', async () => { - // const id = new LearningObjectIdentifier('id02', Language.English, '1'); - // const learningObject = - // await LearningObjectRepository.findByIdentifier(id); + it('should return the requested attachment', async () => { + const id = new LearningObjectIdentifier('id02', Language.English, '1'); + const learningObject = + await LearningObjectRepository.findByIdentifier(id); - // const attachment = - // await AttachmentRepository.findByLearningObjectAndNumber( - // learningObject!, - // 1 - // ); + const attachment = + await AttachmentRepository.findByLearningObjectAndNumber( + learningObject!, + 1 + ); - // expect(attachment).toBeTruthy(); - // }); + expect(attachment).toBeTruthy(); + }); });