Merge branch 'fix/tests-werken-niet-op-dev' of https://github.com/SELab-2/Dwengo-1 into fix/tests-werken-niet-op-dev
This commit is contained in:
		
						commit
						0aed5870cb
					
				
					 3 changed files with 3 additions and 0 deletions
				
			
		|  | @ -60,6 +60,7 @@ describe('DatabaseLearningObjectProvider', () => { | ||||||
|     describe('getLearningObjectHTML', () => { |     describe('getLearningObjectHTML', () => { | ||||||
|         it('should return the correct rendering of the learning object', async () => { |         it('should return the correct rendering of the learning object', async () => { | ||||||
|             const result = await databaseLearningObjectProvider.getLearningObjectHTML(exampleLearningObject); |             const result = await databaseLearningObjectProvider.getLearningObjectHTML(exampleLearningObject); | ||||||
|  |             // Set newlines so your tests are platform-independent.
 | ||||||
|             expect(result).toEqual(example.getHTMLRendering().replace(/\r\n/g, '\n')); |             expect(result).toEqual(example.getHTMLRendering().replace(/\r\n/g, '\n')); | ||||||
|         }); |         }); | ||||||
|         it('should return null for a non-existing learning object', async () => { |         it('should return null for a non-existing learning object', async () => { | ||||||
|  |  | ||||||
|  | @ -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 () => { |         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); |             const result = await learningObjectService.getLearningObjectHTML(exampleLearningObject); | ||||||
|             expect(result).not.toBeNull(); |             expect(result).not.toBeNull(); | ||||||
|  |             // Set newlines so your tests are platform-independent.
 | ||||||
|             expect(result).toEqual(learningObjectExample.getHTMLRendering().replace(/\r\n/g, '\n')); |             expect(result).toEqual(learningObjectExample.getHTMLRendering().replace(/\r\n/g, '\n')); | ||||||
|         }); |         }); | ||||||
|         it( |         it( | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ describe('ProcessingService', () => { | ||||||
|     it('renders a markdown learning object correctly', async () => { |     it('renders a markdown learning object correctly', async () => { | ||||||
|         const markdownLearningObject = mdExample.createLearningObject(); |         const markdownLearningObject = mdExample.createLearningObject(); | ||||||
|         const result = await processingService.render(markdownLearningObject); |         const result = await processingService.render(markdownLearningObject); | ||||||
|  |         // Set newlines so your tests are platform-independent.
 | ||||||
|         expect(result).toEqual(mdExample.getHTMLRendering().replace(/\r\n/g, '\n')); |         expect(result).toEqual(mdExample.getHTMLRendering().replace(/\r\n/g, '\n')); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Laure Jablonski
						Laure Jablonski