Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 6f6e746

Browse files
committed
Add tests for exposed identifiers
1 parent 6b829e1 commit 6f6e746

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ import vToString from 'vdom-to-html'
2222
import * as vue from 'vue'
2323
import serverRenderer from '@vue/server-renderer'
2424
import {toH} from './index.js'
25+
import * as mod from './index.js'
26+
27+
test('toH', async (t) => {
28+
assert.deepEqual(
29+
Object.keys(mod).sort(),
30+
['toH'],
31+
'should expose the public api'
32+
)
2533

26-
test('toHyperscript', async (t) => {
2734
assert.equal(typeof toH, 'function', 'should expose a function')
2835

2936
assert.throws(

0 commit comments

Comments
 (0)