Pretty print json unit test error results with Jasmine
23 November, 2015
0 Comments
1 category
If you use the standard HTML reporter for jasmine an expect like: expect(JSON.stringify(actual)).toEqual(JSON.stringify(expected)); would result in: If you replace the div tag with a pre tag in the “jasmine-html.js” file.