Skip to content

Commit 7561577

Browse files
author
Joel Mertanen
committed
fix(test): cleaner test case for es6 module case
1 parent 752f3fc commit 7561577

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/components/connector.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ describe('Connector', () => {
117117
it('Should allow ES6 modules', () => {
118118
// The tests are run in Node, so we are unable to use actual ES6 modules. We get quite
119119
// close by emulating it
120-
const fakeModule = new Number(1);
120+
class FakeModule {};
121+
const fakeModule = new FakeModule();
121122
fakeModule.prop = () => {};
122123
expect(connect(() => ({}), fakeModule)(targetObj)).toNotThrow();
123124
});

0 commit comments

Comments
 (0)