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 8901d8b commit 2543409Copy full SHA for 2543409
test.js
@@ -9,13 +9,18 @@ import {x} from 'xastscript'
9
import {retext} from 'retext'
10
import {fromXml} from 'xast-util-from-xml'
11
import {inspect, inspectColor, inspectNoColor} from './index.js'
12
+import * as mod from './index.js'
13
14
const chalkEnabled = new Chalk({level: 1})
15
16
const paragraph = 'Some simple text. Other “sentence”.'
17
-test('inspect', () => {
18
- assert.equal(typeof inspect, 'function', 'should be a `function`')
+test('core', () => {
19
+ assert.deepEqual(
20
+ Object.keys(mod).sort(),
21
+ ['inspect', 'inspectColor', 'inspectNoColor'],
22
+ 'should expose the public api'
23
+ )
24
})
25
26
test('inspect()', () => {
0 commit comments