Skip to content

Commit

Permalink
test it
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed Nov 3, 2023
1 parent 6b05382 commit 9524d69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/language-service/tests/inlayHint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Range } from 'vscode-languageserver-protocol';

const baseDir = path.resolve(__dirname, '../../../test-workspace/language-service/inlay-hint');
const testDirs = fs.readdirSync(baseDir);
const normalizeNewline = (text: string) => text.replace(/\r\n/g, '\n');

for (const dirName of testDirs) {

Expand Down Expand Up @@ -41,7 +40,9 @@ for (const dirName of testDirs) {
range,
);

const inlayHint = normalizeNewline(inlayHints[0].label as string);
const inlayHint = inlayHints[0].label;

console.log(inlayHint);

expect(inlayHint).toBeDefined();
expect(inlayHint).toMatchSnapshot();
Expand Down

0 comments on commit 9524d69

Please sign in to comment.