mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-30 00:30:29 -04:00
26 lines
1.0 KiB
TypeScript
26 lines
1.0 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import 'mocha';
|
|
import * as should from 'should';
|
|
import * as loc from '../localizedConstants';
|
|
import { DataTierApplicationWizard, Operation } from '../wizard/dataTierApplicationWizard';
|
|
|
|
describe('Dacfx wizard', function (): void {
|
|
it('Should initialize wizard correctly', async () => {
|
|
let wizard = new DataTierApplicationWizard();
|
|
should.notEqual(wizard.wizard, undefined);
|
|
should.equal(wizard.wizard.title, loc.wizardTitle);
|
|
|
|
wizard.setPages();
|
|
should.notEqual(wizard.pages, undefined);
|
|
should.equal(wizard.pages.size, 7);
|
|
should.equal(wizard.wizard.pages.length, 4);
|
|
|
|
wizard.setDoneButton(Operation.deploy);
|
|
should.equal(wizard.selectedOperation, Operation.deploy);
|
|
});
|
|
});
|