mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +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';
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user