mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-08 11:56:34 +00:00
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:
parent
e0416cf2dc
commit
aa4beaab4d
@ -35,7 +35,7 @@ describe('Browser: SVGIcon', function() {
|
|||||||
const icon = '../../../../../lib/gui/assets/etcher.svg';
|
const icon = '../../../../../lib/gui/assets/etcher.svg';
|
||||||
let iconContents = fs.readFileSync(path.join(__dirname, '../../../lib/gui/assets/etcher.svg'), {
|
let iconContents = fs.readFileSync(path.join(__dirname, '../../../lib/gui/assets/etcher.svg'), {
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
}).split('\n');
|
}).split(/\r?\n/);
|
||||||
|
|
||||||
// Injecting XML as HTML causes the XML header to be commented out.
|
// Injecting XML as HTML causes the XML header to be commented out.
|
||||||
// Modify here to ease assertions later on.
|
// Modify here to ease assertions later on.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user