提交 1cc301c2 编写于 作者: B Benjamin Pasero

files2 - strengthen test

上级 62f59cf1
......@@ -886,7 +886,8 @@ suite('Disk File Service', () => {
assert.equal(fileStat.name, 'lorem.txt');
}));
assert.equal(readFileSync(resource.fsPath).toString(), '00000' + newContent);
const fileContent = readFileSync(resource.fsPath).toString();
assert.ok(['0', '00', '000', '0000', '00000'].some(offset => fileContent === offset + newContent));
});
test('writeFile (readable)', async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册