mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
fix a few lint warnings (#17286)
This commit is contained in:
@@ -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');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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> {
|
||||||
|
|||||||
Reference in New Issue
Block a user