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

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

View file

@ -60,6 +60,7 @@ describe('DatabaseLearningObjectProvider', () => {
describe('getLearningObjectHTML', () => {
it('should return the correct rendering of the learning object', async () => {
const result = await databaseLearningObjectProvider.getLearningObjectHTML(exampleLearningObject);
// Set newlines so your tests are platform-independent.
expect(result).toEqual(example.getHTMLRendering().replace(/\r\n/g, '\n'));
});
it('should return null for a non-existing learning object', async () => {