Skip to content

Commit

Permalink
Fix skipped test
Browse files Browse the repository at this point in the history
  • Loading branch information
David Dooling committed Aug 28, 2018
1 parent c698b45 commit c02e645
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/tree/ast/antlr/java/java.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ describe("java grammar", () => {
}).then(() => done(), done);
});

it.skip("should reject invalid path expression", () => {
it("should reject invalid path expression", done => {
const p = InMemoryProject.of(
{ path: "src/main/java/Foo.java", content: "import foo.bar.Baz;\npublic class Foo { int i = 5;}" });
assert.throws(() => findMatches(p, JavaFileParser, AllJavaFiles, "//thisDoesntExist/Identifier"),
(err: any) => err.message.includes("thisDoesntExist"));
findMatches(p, JavaFileParser, AllJavaFiles, "//thisDoesntExist/Identifier")
.then(() => assert.fail("should have thrown an error"), err => {
assert(err.message.includes("thisDoesntExist"));
}).then(() => done(), done);
});

it("should get into AST", done => {
Expand Down

0 comments on commit c02e645

Please sign in to comment.