mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 01:25:36 -05:00
resend previous PR with test fixes (#19912)
* Revert "Revert "use reliable way to detect createtable statements (#19897)" (#19906)"
This reverts commit c211fb981c.
* fix tests
* fix test cases
This commit is contained in:
@@ -39,7 +39,7 @@ describe('Publish Database Dialog', () => {
|
||||
sdkStyle: false
|
||||
});
|
||||
|
||||
const project = new Project(projFilePath);
|
||||
const project = await Project.openProject(projFilePath);
|
||||
const publishDatabaseDialog = new PublishDatabaseDialog(project);
|
||||
publishDatabaseDialog.openDialog();
|
||||
should.notEqual(publishDatabaseDialog.publishTab, undefined);
|
||||
|
||||
@@ -12,6 +12,7 @@ import * as TypeMoq from 'typemoq';
|
||||
import { PublishOptionsDialog } from '../../dialogs/publishOptionsDialog';
|
||||
import { PublishDatabaseDialog } from '../../dialogs/publishDatabaseDialog';
|
||||
import { Project } from '../../models/project';
|
||||
import sinon = require('sinon');
|
||||
|
||||
describe('Publish Database Options Dialog', () => {
|
||||
before(async function (): Promise<void> {
|
||||
@@ -19,6 +20,8 @@ describe('Publish Database Options Dialog', () => {
|
||||
});
|
||||
|
||||
it('Should open dialog successfully ', async function (): Promise<void> {
|
||||
const proj = new Project('');
|
||||
sinon.stub(proj, 'getProjectTargetVersion').returns('150');
|
||||
const publishDatabaseDialog = new PublishDatabaseDialog(new Project(''));
|
||||
const optionsDialog = new PublishOptionsDialog(testData.getDeploymentOptions(), publishDatabaseDialog);
|
||||
optionsDialog.openDialog();
|
||||
|
||||
Reference in New Issue
Block a user