Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit a212a5a

Browse files
committed
add regression test to prove non-leakage
1 parent 412336d commit a212a5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit/errors.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ describe('prop-types', () => {
55

66
it('no react', () => {
77
expect(() => reactify(document.registerElement('x-errors-1'), { React: null })).to.throw(msg);
8+
expect(() => reactify(document.registerElement('x-no-errors-1'))).to.not.throw(msg);
89
});
910

1011
it('no react-dom', () => {
1112
expect(() => reactify(document.registerElement('x-errors-2'), { ReactDOM: null })).to.throw(msg);
13+
expect(() => reactify(document.registerElement('x-no-errors-2'))).to.not.throw(msg);
1214
});
1315
});

0 commit comments

Comments
 (0)