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 68d158d commit a643531Copy full SHA for a643531
test.js
@@ -1,8 +1,15 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {start, cont, name} from './index.js'
4
+import * as mod from './index.js'
5
+
6
+test('isIdentifierName', () => {
7
+ assert.deepEqual(
8
+ Object.keys(mod).sort(),
9
+ ['cont', 'name', 'start'],
10
+ 'should expose the public api'
11
+ )
12
-test('estree-util-is-identifier-name', () => {
13
assert.ok(start('a'.charCodeAt(0)), 'should say `a` is a start code')
14
assert.ok(start('_'.charCodeAt(0)), 'should say `_` is a start code')
15
assert.ok(!start('1'.charCodeAt(0)), 'should not say `1` is a start code')
0 commit comments