Update backend/tests/services/learning-objects/learning-object-service.test.ts

Co-authored-by: Tibo De Peuter <tibo.depeuter@ugent.be>
This commit is contained in:
Laure Jablonski 2025-03-17 17:15:38 +01:00 committed by GitHub
parent f3d1ca8867
commit 93af86f876
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,6 +68,7 @@ describe('LearningObjectService', () => {
it('returns the expected HTML when queried with the identifier of a learning object saved in the database', async () => {
const result = await learningObjectService.getLearningObjectHTML(exampleLearningObject);
expect(result).not.toBeNull();
// Set newlines so your tests are platform-independent.
expect(result).toEqual(learningObjectExample.getHTMLRendering().replace(/\r\n/g, '\n'));
});
it(