From 27b0e82c1bbe2b15e1fec7fb8fbe7d3dd0321d96 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Fri, 3 Jun 2022 08:51:36 -0700 Subject: [PATCH] fix lint --- .../unittests/tsserver/updateFileSystem.ts | 22 +++++++++---------- .../unittests/tsserver/webServer.ts | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/testRunner/unittests/tsserver/updateFileSystem.ts b/src/testRunner/unittests/tsserver/updateFileSystem.ts index 02af6f6fe74..cdfd4a42dbf 100644 --- a/src/testRunner/unittests/tsserver/updateFileSystem.ts +++ b/src/testRunner/unittests/tsserver/updateFileSystem.ts @@ -98,28 +98,28 @@ ${file.fileContent}`; arguments: { file: app.file } }], ]; - VirtualFS.createWatcher(fshost.fsWatches, '/host/b/app.ts' as Path, { + VirtualFS.createWatcher(fshost.fsWatches, "/host/b/app.ts" as Path, { cb: (_, relativeFileName) => { - assert.fail("The watcher for /host/b/app.ts should not be called at all. Called with " + relativeFileName) + assert.fail("The watcher for /host/b/app.ts should not be called at all. Called with " + relativeFileName); }, - directoryName: '/host/b', + directoryName: "/host/b", fallbackOptions: {}, fallbackPollingInterval: PollingInterval.Medium, - }) + }); const scenario = "updateFileSystem"; const subScenario = "open and close files"; baselineFileSystem(scenario, subScenario, requests, fshost, session); host.ensureFileOrFolder({ - path: '/host/b/app.ts', + path: "/host/b/app.ts", content: 'console.log("hello")' - }) - host.modifyFile('/host/b/app.ts', "console.log('goodbye')") - assert.isFalse(host.fileExists('/fshost/b/app.ts'), 'host fileExists /fshost/b/app.ts') - assert.isTrue(fshost.fileExists('/fshost/b/app.ts'), 'fshost fileExists /fshost/b/app.ts') - assert.isTrue(host.fileExists('/host/b/app.ts'), 'host fileExists /host/b/app.ts') - assert.isFalse(fshost.fileExists('/host/b/app.ts'), 'fshost fileExists /host/b/app.ts') + }); + host.modifyFile("/host/b/app.ts", "console.log('goodbye')"); + assert.isFalse(host.fileExists("/fshost/b/app.ts"), "host fileExists /fshost/b/app.ts"); + assert.isTrue(fshost.fileExists("/fshost/b/app.ts"), "fshost fileExists /fshost/b/app.ts"); + assert.isTrue(host.fileExists("/host/b/app.ts"), "host fileExists /host/b/app.ts"); + assert.isFalse(fshost.fileExists("/host/b/app.ts"), "fshost fileExists /host/b/app.ts"); }); }); } diff --git a/src/testRunner/unittests/tsserver/webServer.ts b/src/testRunner/unittests/tsserver/webServer.ts index c7dc2c05f57..708ad4f7036 100644 --- a/src/testRunner/unittests/tsserver/webServer.ts +++ b/src/testRunner/unittests/tsserver/webServer.ts @@ -62,7 +62,7 @@ namespace ts.projectSystem { content: "export const numberConst = 10; export const arrayConst: Array = [];" }; // Lib files are rooted - const libFilePath = isVfs ? "/a/lib/lib.d.ts" : "/lib.d.ts" + const libFilePath = isVfs ? "/a/lib/lib.d.ts" : "/lib.d.ts"; session.executeCommand({ seq: 1, type: "request",