diff --git a/test/hover.test.ts b/test/hover.test.ts index e01b90c0..d45e781d 100644 --- a/test/hover.test.ts +++ b/test/hover.test.ts @@ -20,13 +20,10 @@ describe('Hover Tests', () => { let telemetry: TestTelemetry; before(() => { - languageSettingsSetup = new ServiceSetup() - .withHover() - .withIndentation(' ') - .withSchemaFileMatch({ - uri: 'http://google.com', - fileMatch: ['bad-schema.yaml'], - }); + languageSettingsSetup = new ServiceSetup().withHover().withSchemaFileMatch({ + uri: 'http://google.com', + fileMatch: ['bad-schema.yaml'], + }); const { languageService: langService, languageHandler: langHandler, @@ -513,7 +510,26 @@ users: ); }); - it('hover on value and its description has multiline, indentationa and special string', async () => { + it('hover on value and its description has multiline, indentation and special string', async () => { + (() => { + languageSettingsSetup = new ServiceSetup() + .withHover() + .withIndentation(' ') + .withSchemaFileMatch({ + uri: 'http://google.com', + fileMatch: ['bad-schema.yaml'], + }); + const { + languageService: langService, + languageHandler: langHandler, + yamlSettings: settings, + telemetry: testTelemetry, + } = setupLanguageService(languageSettingsSetup.languageSettings); + languageService = langService; + languageHandler = langHandler; + yamlSettings = settings; + telemetry = testTelemetry; + })(); //https://github.com/redhat-developer/vscode-yaml/issues/886 languageService.addSchema(SCHEMA_ID, { type: 'object', diff --git a/test/integration.test.ts b/test/integration.test.ts index 8219cfd8..20ce036a 100644 --- a/test/integration.test.ts +++ b/test/integration.test.ts @@ -22,7 +22,6 @@ describe('Kubernetes Integration Tests', () => { const fileMatch = ['*.yml', '*.yaml']; languageSettingsSetup = new ServiceSetup() .withHover() - .withIndentation(' ') .withValidate() .withCompletion() .withSchemaFileMatch({