Skip to content

Commit

Permalink
mike-lischke#136 Break TypeScript Expr tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed Aug 4, 2024
1 parent f3e8999 commit 98e345d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/CodeCompletionCore.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ describe("Code Completion Tests", () => {
});

describe("Simple expression parser:", () => {
it("Most simple setup", () => {
it("Most simple setup", () => { {
// No customization happens here, so the c3 engine only returns lexer tokens.
const inputStream = CharStream.fromString("var c = a + b()");
const lexer = new ExprLexer(inputStream);
Expand Down Expand Up @@ -585,9 +585,9 @@ describe("Code Completion Tests", () => {
expect(candidates.tokens.has(ExprLexer.MULTIPLY)).toEqual(true);
expect(candidates.tokens.has(ExprLexer.DIVIDE)).toEqual(true);
expect(candidates.tokens.has(ExprLexer.OPEN_PAR)).toEqual(true);
});
} } /* ); */

it("Typical setup", () => {
/* it("Typical setup", () => */ {
const inputStream = CharStream.fromString("var c = a + b()");
const lexer = new ExprLexer(inputStream);
const tokenStream = new CommonTokenStream(lexer);
Expand Down Expand Up @@ -644,7 +644,7 @@ describe("Code Completion Tests", () => {

// Our function rule should start at the ID reference of token 'a'.
expect(candidates.rules.get(ExprParser.RULE_functionRef)?.startTokenIndex).toEqual(6);
});
} } );

it("Recursive preferred rule", () => {
const inputStream = CharStream.fromString("var c = a + b"); // b is not a function here, but a variable.
Expand Down

0 comments on commit 98e345d

Please sign in to comment.