Skip to content

Commit cb05ff7

Browse files
test(module): add unit test for ES module
1 parent c81c0e8 commit cb05ff7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/module/index.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import assert from 'assert';
2+
import parse, {
3+
domToReact,
4+
htmlToDOM,
5+
attributesToProps
6+
} from '../../index.mjs';
7+
8+
[parse, domToReact, htmlToDOM, attributesToProps].forEach(func => {
9+
assert.strictEqual(typeof func, 'function');
10+
});

0 commit comments

Comments
 (0)