mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add a few unit tests for dacpac extension (#9194)
* add a few unit tests * fix tests for linux
This commit is contained in:
25
extensions/dacpac/src/test/wizard.test.ts
Normal file
25
extensions/dacpac/src/test/wizard.test.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* 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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user