Skip to content

Commit 064f0df

Browse files
test(html-to-react): have a stronger assert
1 parent efba1d4 commit 064f0df

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/html-to-react.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ const React = require('react');
33
const parse = require('../');
44
const { data, render } = require('./helpers/');
55

6-
exports.__esModule = true;
7-
const ESParser = require('../');
8-
96
describe('html-to-react', () => {
107
describe('parser', () => {
118
[undefined, null, {}, [], 42].forEach(value => {
@@ -17,7 +14,7 @@ describe('html-to-react', () => {
1714
});
1815

1916
it('has default ES Module defined', () => {
20-
assert.notEqual(ESParser['default'], undefined);
17+
assert.strictEqual(parse.default, parse);
2118
});
2219

2320
it('returns string if it cannot be parsed as HTML', () => {

0 commit comments

Comments
 (0)