Refactor schema compare options and add tests (#11414)

* refactor to make testing options easier

* some cleanup

* remove async

* get file to 100% coverage

* address a couple comments
This commit is contained in:
Kim Santiago
2020-07-20 16:53:44 -07:00
committed by GitHub
parent 7fe3df8259
commit 69849de6f0
4 changed files with 1530 additions and 1374 deletions

View File

@@ -0,0 +1,15 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as should from 'should';
import {SchemaCompareOptionsDialog} from '../../dialogs/schemaCompareOptionsDialog';
describe('Schema Compare Options Dialog', () => {
it('Should open dialog successfully ', async function (): Promise<void> {
const optionsDialog = new SchemaCompareOptionsDialog(undefined, undefined);
await optionsDialog.openDialog();
should.notEqual(optionsDialog.dialog, undefined);
});
});