mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add query-history tests (#19923)
This commit is contained in:
@@ -472,7 +472,7 @@
|
||||
"@types/semver": "^7.3.1",
|
||||
"@types/sinon": "^9.0.8",
|
||||
"@types/yamljs": "0.2.30",
|
||||
"@microsoft/azdata-test": "^1.5.1",
|
||||
"@microsoft/azdata-test": "^1.5.2",
|
||||
"mocha": "^7.1.1",
|
||||
"mocha-junit-reporter": "^1.17.0",
|
||||
"mocha-multi-reporters": "^1.1.7",
|
||||
|
||||
@@ -11,24 +11,22 @@ import { initializeWizardPage, InputComponent, InputComponentInfo, Validator, Wi
|
||||
import { FieldType } from '../../../interfaces';
|
||||
import { IToolsService } from '../../../services/toolsService';
|
||||
import { Deferred } from '../../utils';
|
||||
import { createModelViewMock } from '@microsoft/azdata-test/out/mocks/modelView/modelViewMock';
|
||||
import { StubCheckbox } from '@microsoft/azdata-test/out/stubs/modelView/stubCheckbox';
|
||||
import { StubInputBox } from '@microsoft/azdata-test/out/stubs/modelView/stubInputBox';
|
||||
import * as azdataTest from '@microsoft/azdata-test';
|
||||
import * as should from 'should';
|
||||
import * as sinon from 'sinon';
|
||||
|
||||
describe('WizardPage', () => {
|
||||
let stubCheckbox: StubCheckbox;
|
||||
let stubInputBox: StubInputBox;
|
||||
let stubCheckbox: azdataTest.stubs.modelView.StubCheckbox;
|
||||
let stubInputBox: azdataTest.stubs.modelView.StubInputBox;
|
||||
let testWizardPage: WizardPageContext;
|
||||
let contentRegistered: Deferred<void>;
|
||||
|
||||
before(function () {
|
||||
contentRegistered = new Deferred<void>();
|
||||
const mockWizardPage = TypeMoq.Mock.ofType<azdata.window.WizardPage>();
|
||||
stubCheckbox = new StubCheckbox();
|
||||
stubInputBox = new StubInputBox();
|
||||
const mockModelView = createModelViewMock({
|
||||
stubCheckbox = new azdataTest.stubs.modelView.StubCheckbox();
|
||||
stubInputBox = new azdataTest.stubs.modelView.StubInputBox();
|
||||
const mockModelView = azdataTest.mocks.modelView.createModelViewMock({
|
||||
checkBox: () => stubCheckbox,
|
||||
inputBox: () => stubInputBox
|
||||
});
|
||||
|
||||
@@ -227,10 +227,10 @@
|
||||
resolved "https://registry.yarnpkg.com/@microsoft/applicationinsights-shims/-/applicationinsights-shims-2.0.1.tgz#5d72fb7aaf4056c4fda54f9d7c93ccf8ca9bcbfd"
|
||||
integrity sha512-G0MXf6R6HndRbDy9BbEj0zrLeuhwt2nsXk2zKtF0TnYo39KgYqhYC2ayIzKPTm2KAE+xzD7rgyLdZnrcRvt9WQ==
|
||||
|
||||
"@microsoft/azdata-test@^1.5.1":
|
||||
version "1.5.1"
|
||||
resolved "https://registry.yarnpkg.com/@microsoft/azdata-test/-/azdata-test-1.5.1.tgz#e61aeb81f3291563f250e6b0c712a45aa335de94"
|
||||
integrity sha512-3B5iz0WU5TCKOs420zRNk4LWi2n5W64ZLJMu81X/yFFmnCbjhWwKE4xgTBZTuzmzg372bNNrHm9zHZcr3lm1RA==
|
||||
"@microsoft/azdata-test@^1.5.2":
|
||||
version "1.5.2"
|
||||
resolved "https://registry.yarnpkg.com/@microsoft/azdata-test/-/azdata-test-1.5.2.tgz#0a750eed6c686eaf98e63db580f119916a083d6a"
|
||||
integrity sha512-m1WVNxkCqU8nkaRB0Q/DEq1wHej0Ev3bfyEmsPgX9znymY7MD9c1l6kRoHtPPmsYYDEjcCxO2QXUJAsNUeAKwg==
|
||||
dependencies:
|
||||
http-proxy-agent "^2.1.0"
|
||||
https-proxy-agent "^2.2.4"
|
||||
|
||||
Reference in New Issue
Block a user