Skip to content

Commit

Permalink
#164 - update unit tests over offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
ichiriac committed Jul 10, 2018
1 parent 34ed26f commit ddcd341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/location.test.js
Expand Up @@ -91,10 +91,10 @@ describe("Test offsets", function() {
expect(ast.children[1].loc.start.column).toBe(0);
// ignored ';' because it was eaten by expr and assign
// was retrieved by expr_item without it
expect(ast.children[1].loc.end.column).toBe(9);
expect(ast.children[1].loc.end.column).toBe(10);
});
it("test offsets", function() {
expect(ast.children[1].loc.source).toBe(lines[2].substring(0, 9));
expect(ast.children[1].loc.source).toBe(lines[2].substring(0, 10));
});
});

Expand Down

0 comments on commit ddcd341

Please sign in to comment.