Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Apr 2, 2024
1 parent 025f8ce commit 700997b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/sample/src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,16 @@ describe("parse", () => {
})
describe("code", () => {
const action = "code"
test("greeter.ts", async () => {
test("greeter.ts query", async () => {
const res =
await $`node ${cli} ${cmd} ${action} src/greeter.ts "(interface_declaration) @i"`
assert(res.stdout.includes("interface_declaration"))
})
test("greeter.ts tree", async () => {
const res =
await $`node ${cli} ${cmd} ${action} src/greeter.ts`
assert(res.stdout.includes("interface_declaration"))
})
test("counting.py", async () => {
const res =
await $`node ${cli} ${cmd} ${action} src/counting.py "(class_definition) @i"`
Expand Down

0 comments on commit 700997b

Please sign in to comment.