fix integration tests

This commit is contained in:
Joao Moreno 2018-03-07 11:02:53 +01:00
parent 195747e828
commit 55ea9fe284
2 changed files with 4 additions and 3 deletions

View file

@ -39,5 +39,6 @@
}
],
"typescript.tsdk": "node_modules/typescript/lib",
"npm.exclude": "**/extensions/**"
"npm.exclude": "**/extensions/**",
"emmet.excludeLanguages": []
}

View file

@ -46,8 +46,8 @@ suite('HTML Embedded Formatting', () => {
}
function assertFormatWithFixture(fixtureName: string, expectedPath: string, options?: any, formatOptions?: FormattingOptions): void {
let input = fs.readFileSync(path.join(__dirname, 'fixtures', 'inputs', fixtureName)).toString();
let expected = fs.readFileSync(path.join(__dirname, 'fixtures', 'expected', expectedPath)).toString();
let input = fs.readFileSync(path.join(__dirname, 'fixtures', 'inputs', fixtureName)).toString().replace(/\r\n/mg, '\n');
let expected = fs.readFileSync(path.join(__dirname, 'fixtures', 'expected', expectedPath)).toString().replace(/\r\n/mg, '\n');
assertFormat(input, expected, options, formatOptions, expectedPath);
}