mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
fix integration tests
This commit is contained in:
parent
195747e828
commit
55ea9fe284
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -39,5 +39,6 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"typescript.tsdk": "node_modules/typescript/lib",
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
"npm.exclude": "**/extensions/**"
|
"npm.exclude": "**/extensions/**",
|
||||||
|
"emmet.excludeLanguages": []
|
||||||
}
|
}
|
|
@ -46,8 +46,8 @@ suite('HTML Embedded Formatting', () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function assertFormatWithFixture(fixtureName: string, expectedPath: string, options?: any, formatOptions?: FormattingOptions): void {
|
function assertFormatWithFixture(fixtureName: string, expectedPath: string, options?: any, formatOptions?: FormattingOptions): void {
|
||||||
let input = fs.readFileSync(path.join(__dirname, 'fixtures', 'inputs', fixtureName)).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();
|
let expected = fs.readFileSync(path.join(__dirname, 'fixtures', 'expected', expectedPath)).toString().replace(/\r\n/mg, '\n');
|
||||||
assertFormat(input, expected, options, formatOptions, expectedPath);
|
assertFormat(input, expected, options, formatOptions, expectedPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue