Skip to content

Commit

Permalink
fix: use single quote in test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jul 19, 2022
1 parent b1f33c1 commit 9301fe2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/vue-language-service/tests/complete.ts
Expand Up @@ -75,7 +75,6 @@ for (const dirName of testDirs) {
expect(result.replace(/\r\n/g, '\n')).toBe(expectedFileText.replace(/\r\n/g, '\n'));
});
}

}
});
}
Expand Down
11 changes: 10 additions & 1 deletion packages/vue-language-service/tests/utils/createTester.ts
Expand Up @@ -40,7 +40,16 @@ function createTester(root: string) {
getScriptSnapshot,
getVueCompilationSettings: () => ({}),
};
const languageService = createLanguageService({ typescript: ts }, host, undefined, undefined, undefined, []);
const languageService = createLanguageService({ typescript: ts }, host, undefined, undefined, {
async getConfiguration<T>(section: string) {
if (section === 'typescript.preferences.quoteStyle' || section === 'javascript.preferences.quoteStyle') {
return 'single' as unknown as T;
}
return undefined;
},
onDidChangeConfiguration() { },
rootUris: [],
}, []);

return {
host,
Expand Down

0 comments on commit 9301fe2

Please sign in to comment.