mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 09:35:39 -05:00
Fix extension linting warnings and enable extension linting in pipelines (#16922)
* Fix extension linting errors * fix test
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user