Fix extension linting warnings and enable extension linting in pipelines (#16922)

* Fix extension linting errors

* fix test
This commit is contained in:
Charles Gagnon
2021-08-27 15:13:01 -07:00
committed by GitHub
parent ea5f9091d1
commit e7a719ceb4
13 changed files with 76 additions and 73 deletions

View File

@@ -868,14 +868,14 @@ describe('Project: properties', function (): void {
projFilePath = await testUtils.createTestSqlProjFile(baselines.sqlProjectMissingVersionBaseline);
const project = await Project.openProject(projFilePath);
should(() => project.getProjectTargetVersion()).throw("Invalid DSP in .sqlproj file");
should(() => project.getProjectTargetVersion()).throw('Invalid DSP in .sqlproj file');
});
it('Should throw on invalid target database version', async function (): Promise<void> {
projFilePath = await testUtils.createTestSqlProjFile(baselines.sqlProjectInvalidVersionBaseline);
const project = await Project.openProject(projFilePath);
should(() => project.getProjectTargetVersion()).throw("Invalid DSP in .sqlproj file");
should(() => project.getProjectTargetVersion()).throw('Invalid DSP in .sqlproj file');
});
it('Should read default database collation', async function (): Promise<void> {
@@ -897,7 +897,7 @@ describe('Project: properties', function (): void {
const project = await Project.openProject(projFilePath);
should(() => project.getDatabaseDefaultCollation())
.throw("Invalid value specified for the property 'DefaultCollation' in .sqlproj file");
.throw('Invalid value specified for the property \'DefaultCollation\' in .sqlproj file');
});
});