fix a few lint warnings (#17286)

This commit is contained in:
Alan Ren
2021-10-06 14:12:49 -07:00
committed by GitHub
parent 42b89095f2
commit 5d56e6525b
3 changed files with 4 additions and 5 deletions

View File

@@ -367,7 +367,7 @@ describe('BookTocManagerTests', function () {
], ],
'type': BookTreeItemType.savedNotebook 'type': BookTreeItemType.savedNotebook
} }
} };
}); });
testRuns.forEach(function (run) { testRuns.forEach(function (run) {
@@ -555,7 +555,7 @@ describe('BookTocManagerTests', function () {
const section: JupyterBookSection = { const section: JupyterBookSection = {
title: sectionA.title, title: sectionA.title,
file: sectionA.uri file: sectionA.uri
} };
let isParent = bookTocManager.isParent(notebook1, sourceBook, section); let isParent = bookTocManager.isParent(notebook1, sourceBook, section);
should(isParent).be.true('Section A is parent of notebook1'); should(isParent).be.true('Section A is parent of notebook1');
}); });

View File

@@ -7,7 +7,7 @@ import * as should from 'should';
import * as path from 'path'; import * as path from 'path';
import * as TypeMoq from 'typemoq'; import * as TypeMoq from 'typemoq';
import * as constants from '../../common/constants'; import * as constants from '../../common/constants';
import { BookTreeItemType } from '../../common/utils' import { BookTreeItemType } from '../../common/utils';
import { IBookTrustManager, BookTrustManager } from '../../book/bookTrustManager'; import { IBookTrustManager, BookTrustManager } from '../../book/bookTrustManager';
import { BookTreeItem, BookTreeItemFormat } from '../../book/bookTreeItem'; import { BookTreeItem, BookTreeItemFormat } from '../../book/bookTreeItem';
import * as vscode from 'vscode'; import * as vscode from 'vscode';

View File

@@ -220,7 +220,7 @@ describe('deploy service', function (): void {
appSettingType: AppSettingType.AzureFunction, appSettingType: AppSettingType.AzureFunction,
appSettingFile: filePath, appSettingFile: filePath,
envVariableName: 'SQLConnectionString', envVariableName: 'SQLConnectionString',
} };
const deployService = new DeployService(testContext.outputChannel); const deployService = new DeployService(testContext.outputChannel);
let connection = new azdata.connection.ConnectionProfile(); let connection = new azdata.connection.ConnectionProfile();
sandbox.stub(azdata.connection, 'getConnection').returns(Promise.resolve(connection)); sandbox.stub(azdata.connection, 'getConnection').returns(Promise.resolve(connection));
@@ -229,7 +229,6 @@ describe('deploy service', function (): void {
await deployService.updateAppSettings(appInteg, deployProfile); await deployService.updateAppSettings(appInteg, deployProfile);
let newContent = JSON.parse(fse.readFileSync(filePath, 'utf8')); let newContent = JSON.parse(fse.readFileSync(filePath, 'utf8'));
should(newContent).deepEqual(expected); should(newContent).deepEqual(expected);
}); });
it('Should clean a list of docker images successfully', async function (): Promise<void> { it('Should clean a list of docker images successfully', async function (): Promise<void> {