mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fix extension linting warnings and enable extension linting in pipelines (#16922)
* Fix extension linting errors * fix test
This commit is contained in:
@@ -10,25 +10,25 @@ import {SchemaCompareOptionsModel} from '../../models/schemaCompareOptionsModel'
|
||||
describe('Schema Compare Options Model', () => {
|
||||
it('Should create model and set options successfully', function (): void {
|
||||
const model = new SchemaCompareOptionsModel(defaultOptions);
|
||||
should.notEqual(model.getOptionsData(), undefined, "Options shouldn't be undefined");
|
||||
should.notEqual(model.getObjectsData(), undefined, "Objects shouldn't be udnefined");
|
||||
should.notEqual(model.getOptionsData(), undefined, 'Options shouldn\'t be undefined');
|
||||
should.notEqual(model.getObjectsData(), undefined, 'Objects shouldn\'t be undefined');
|
||||
|
||||
should.doesNotThrow(() => model.setDeploymentOptions());
|
||||
should.doesNotThrow(() => model.setObjectTypeOptions());
|
||||
|
||||
should(model.getSchemaCompareOptionUtil('')).be.false("Should return false if an invalid option is passed in");
|
||||
should(model.getSchemaCompareIncludedObjectsUtil('')).be.false("Should return false if invalid object name is passed in");
|
||||
should(model.getSchemaCompareOptionUtil('')).be.false('Should return false if an invalid option is passed in');
|
||||
should(model.getSchemaCompareIncludedObjectsUtil('')).be.false('Should return false if invalid object name is passed in');
|
||||
});
|
||||
|
||||
it('Should exclude objects', function (): void {
|
||||
const model = new SchemaCompareOptionsModel(defaultOptions);
|
||||
should(model.excludedObjectTypes.length).be.equal(0, "There shuld be no excluded objects");
|
||||
should(model.excludedObjectTypes.length).be.equal(0, 'There should be no excluded objects');
|
||||
|
||||
model.objectTypeLabels.forEach(l => {
|
||||
model.setSchemaCompareIncludedObjectsUtil(l, false);
|
||||
});
|
||||
|
||||
should(model.excludedObjectTypes.length).be.equal(model.objectTypeLabels.length, "All the object types should be excluded");
|
||||
should(model.excludedObjectTypes.length).be.equal(model.objectTypeLabels.length, 'All the object types should be excluded');
|
||||
});
|
||||
|
||||
it('Should get descriptions', function (): void {
|
||||
|
||||
Reference in New Issue
Block a user