From 5d56e6525ba9ea091debed5ecc2131ae3f8e3093 Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Wed, 6 Oct 2021 14:12:49 -0700 Subject: [PATCH] fix a few lint warnings (#17286) --- extensions/notebook/src/test/book/bookTocManager.test.ts | 4 ++-- extensions/notebook/src/test/book/bookTrustManager.test.ts | 2 +- .../src/test/deploy/deployService.test.ts | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/extensions/notebook/src/test/book/bookTocManager.test.ts b/extensions/notebook/src/test/book/bookTocManager.test.ts index 60845851e0..c7f3472690 100644 --- a/extensions/notebook/src/test/book/bookTocManager.test.ts +++ b/extensions/notebook/src/test/book/bookTocManager.test.ts @@ -367,7 +367,7 @@ describe('BookTocManagerTests', function () { ], 'type': BookTreeItemType.savedNotebook } - } + }; }); testRuns.forEach(function (run) { @@ -555,7 +555,7 @@ describe('BookTocManagerTests', function () { const section: JupyterBookSection = { title: sectionA.title, file: sectionA.uri - } + }; let isParent = bookTocManager.isParent(notebook1, sourceBook, section); should(isParent).be.true('Section A is parent of notebook1'); }); diff --git a/extensions/notebook/src/test/book/bookTrustManager.test.ts b/extensions/notebook/src/test/book/bookTrustManager.test.ts index 55c2d6f113..2b436e7693 100644 --- a/extensions/notebook/src/test/book/bookTrustManager.test.ts +++ b/extensions/notebook/src/test/book/bookTrustManager.test.ts @@ -7,7 +7,7 @@ import * as should from 'should'; import * as path from 'path'; import * as TypeMoq from 'typemoq'; import * as constants from '../../common/constants'; -import { BookTreeItemType } from '../../common/utils' +import { BookTreeItemType } from '../../common/utils'; import { IBookTrustManager, BookTrustManager } from '../../book/bookTrustManager'; import { BookTreeItem, BookTreeItemFormat } from '../../book/bookTreeItem'; import * as vscode from 'vscode'; diff --git a/extensions/sql-database-projects/src/test/deploy/deployService.test.ts b/extensions/sql-database-projects/src/test/deploy/deployService.test.ts index e4f78f14d4..e0ebf4afeb 100644 --- a/extensions/sql-database-projects/src/test/deploy/deployService.test.ts +++ b/extensions/sql-database-projects/src/test/deploy/deployService.test.ts @@ -220,7 +220,7 @@ describe('deploy service', function (): void { appSettingType: AppSettingType.AzureFunction, appSettingFile: filePath, envVariableName: 'SQLConnectionString', - } + }; const deployService = new DeployService(testContext.outputChannel); let connection = new azdata.connection.ConnectionProfile(); sandbox.stub(azdata.connection, 'getConnection').returns(Promise.resolve(connection)); @@ -229,7 +229,6 @@ describe('deploy service', function (): void { await deployService.updateAppSettings(appInteg, deployProfile); let newContent = JSON.parse(fse.readFileSync(filePath, 'utf8')); should(newContent).deepEqual(expected); - }); it('Should clean a list of docker images successfully', async function (): Promise {