test: attachment repo is getest

This commit is contained in:
Laure Jablonski 2025-03-09 10:15:04 +01:00
parent f605abb1ec
commit 14d3772dca

View file

@ -19,21 +19,17 @@ describe('AttachmentRepository', () => {
LearningObjectRepository = getLearningObjectRepository(); LearningObjectRepository = getLearningObjectRepository();
}); });
it('this replaces tests that are not succeeding because of problem', async () => { it('should return the requested attachment', async () => {
expect(true); const id = new LearningObjectIdentifier('id02', Language.English, '1');
const learningObject =
await LearningObjectRepository.findByIdentifier(id);
const attachment =
await AttachmentRepository.findByLearningObjectAndNumber(
learningObject!,
1
);
expect(attachment).toBeTruthy();
}); });
// 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
// );
// expect(attachment).toBeTruthy();
// });
}); });