Consider carriage returns when asserting SVG contents equality (#398)

This was causing builds to fail in Windows.

Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
Juan Cruz Viotti 2016-05-10 15:05:32 -04:00
parent e0416cf2dc
commit aa4beaab4d

View File

@ -35,7 +35,7 @@ describe('Browser: SVGIcon', function() {
const icon = '../../../../../lib/gui/assets/etcher.svg';
let iconContents = fs.readFileSync(path.join(__dirname, '../../../lib/gui/assets/etcher.svg'), {
encoding: 'utf8'
}).split('\n');
}).split(/\r?\n/);
// Injecting XML as HTML causes the XML header to be commented out.
// Modify here to ease assertions later on.