提交 7bc92093 编写于 作者: D Daniel Imms

Fix BackupMainService test

上级 46696068
......@@ -232,13 +232,14 @@ suite('BackupMainService', () => {
});
suite('registerWindowForBackups', () => {
test('pushgetWorkspaceBackupPaths()Sync should persist paths to workspaces.json', () => {
test('should persist paths to workspaces.json', done => {
service.registerWindowForBackupsSync(1, false, null, fooFile.fsPath);
service.registerWindowForBackupsSync(2, false, null, barFile.fsPath);
assert.deepEqual(service.getWorkspaceBackupPaths(), [fooFile.fsPath, barFile.fsPath]);
pfs.readFile(backupWorkspacesPath, 'utf-8').then(buffer => {
const json = <IBackupWorkspacesFormat>JSON.parse(buffer);
assert.deepEqual(json.folderWorkspaces, [fooFile.fsPath, barFile.fsPath]);
done();
});
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册