fix windows tests

This commit is contained in:
Joao Moreno
2019-07-04 08:18:14 +02:00
parent d8eb7c83d0
commit 57e9f3e2db

View File

@@ -247,7 +247,10 @@ suite('Files - TextFileService i/o', () => {
}
test('write - use encoding (cp1252)', async () => {
await testEncodingKeepsData(URI.file(join(testDir, 'some_cp1252.txt')), 'cp1252', ['ObjectCount = LoadObjects("Öffentlicher Ordner");', '', 'Private = "Persönliche Information"', ''].join(isWindows ? '\r\n' : '\n'));
const filePath = join(testDir, 'some_cp1252.txt');
const contents = await readFile(filePath, 'utf8');
const eol = /\r\n/.test(contents) ? '\r\n' : '\n';
await testEncodingKeepsData(URI.file(filePath), 'cp1252', ['ObjectCount = LoadObjects("Öffentlicher Ordner");', '', 'Private = "Persönliche Information"', ''].join(eol));
});
test('write - use encoding (shiftjis)', async () => {