We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5be8f5f commit 6cc6364Copy full SHA for 6cc6364
packages/php/nursery.js
@@ -1,4 +1,5 @@
1
const { setup } = require('@ast-grep/nursery')
2
+const assert = require('node:assert')
3
const languageRegistration = require('./index')
4
const path = require('node:path')
5
@@ -9,6 +10,9 @@ setup({
9
10
src: path.join('php', 'src'),
11
languageRegistration,
12
testRunner: parse => {
- // add test here
13
+ const sg = parse('123')
14
+ const root = sg.root()
15
+ const node = root.find('123')
16
+ assert.equal(node.kind(), 'text')
17
},
18
})
0 commit comments