Skip to content

Commit

Permalink
Fix tokenizer test
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanH-AT committed Jan 18, 2023
1 parent ce8cb35 commit 11a758f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kv/src/tokenizer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ test("Tokenize Simple KV", () => {
expect(tokens[1].range.getStart()).toBe(0);
expect(tokens[1].range.getEnd()).toBe(1);
expect(tokens[2].value).toBe("\"Keyvalues\"");
expect(tokens[1].type).toBe(TokenType.Key);
expect(tokens[2].type).toBe(TokenType.Key);
expect(tokens[2].line).toBe(2);
expect(tokens[2].range.getStart()).toBe(4);
expect(tokens[2].range.getEnd()).toBe(15);
expect(tokens[3].value).toBe("{");
expect(tokens[1].type).toBe(TokenType.ObjectStart);
expect(tokens[3].type).toBe(TokenType.ObjectStart);
expect(tokens[3].line).toBe(2);
expect(tokens[3].range.getStart()).toBe(16);
expect(tokens[3].range.getEnd()).toBe(17);
expect(tokens[4].value).toBe("// A comment");
expect(tokens[1].type).toBe(TokenType.Comment);
expect(tokens[4].type).toBe(TokenType.Comment);
expect(tokens[4].line).toBe(4);
expect(tokens[4].range.getStart()).toBe(8);
expect(tokens[4].range.getEnd()).toBe(20);
Expand Down

0 comments on commit 11a758f

Please sign in to comment.