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

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

View file

@ -8,6 +8,7 @@ describe('ProcessingService', () => {
it('renders a markdown learning object correctly', async () => {
const markdownLearningObject = mdExample.createLearningObject();
const result = await processingService.render(markdownLearningObject);
// Set newlines so your tests are platform-independent.
expect(result).toEqual(mdExample.getHTMLRendering().replace(/\r\n/g, '\n'));
});