Skip to content

Commit b527dd4

Browse files
committed
Add tests for exposed identifiers
1 parent 6f71aaf commit b527dd4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@ import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {h, s} from 'hastscript'
44
import {fromSelector} from './index.js'
5+
import * as mod from './index.js'
56

67
test('fromSelector()', () => {
8+
assert.deepEqual(
9+
Object.keys(mod).sort(),
10+
['fromSelector'],
11+
'should expose the public api'
12+
)
13+
714
assert.throws(
815
() => {
916
fromSelector('@supports (transform-origin: 5% 5%) {}')

0 commit comments

Comments
 (0)