diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-14 18:30:12 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-14 18:30:12 +0200 |
commit | 291cb06fc2d578ac19c01ebda9b71f94733af0e8 (patch) | |
tree | 42de2f30f49d1bf86239074abfa9578d560c7e1e /bindings/node/binding_test.js | |
parent | 3a3ed761881ac220b517c30e1e4596ecead4f354 (diff) |
Fix comment queries for Neovim
Diffstat (limited to 'bindings/node/binding_test.js')
-rw-r--r-- | bindings/node/binding_test.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bindings/node/binding_test.js b/bindings/node/binding_test.js new file mode 100644 index 0000000..afede30 --- /dev/null +++ b/bindings/node/binding_test.js @@ -0,0 +1,9 @@ +/// <reference types="node" /> + +const assert = require("node:assert"); +const { test } = require("node:test"); + +test("can load grammar", () => { + const parser = new (require("tree-sitter"))(); + assert.doesNotThrow(() => parser.setLanguage(require("."))); +}); |