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 bdd9b33 commit 1f0567aCopy full SHA for 1f0567a
test/index.js
@@ -8,8 +8,15 @@ import {Parser} from 'acorn'
8
import acornJsx from 'acorn-jsx'
9
import {SourceMapGenerator} from 'source-map'
10
import {toJs, jsx} from '../index.js'
11
+import * as mod from '../index.js'
12
+
13
+test('toJs', () => {
14
+ assert.deepEqual(
15
+ Object.keys(mod).sort(),
16
+ ['jsx', 'toJs'],
17
+ 'should expose the public api'
18
+ )
19
-test('estree-util-from-js', () => {
20
assert.deepEqual(
21
toJs(fromJs('const a = 1')),
22
{value: 'const a = 1;\n', map: undefined},
0 commit comments