We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752f3fc commit 7561577Copy full SHA for 7561577
test/components/connector.spec.js
@@ -117,7 +117,8 @@ describe('Connector', () => {
117
it('Should allow ES6 modules', () => {
118
// The tests are run in Node, so we are unable to use actual ES6 modules. We get quite
119
// close by emulating it
120
- const fakeModule = new Number(1);
+ class FakeModule {};
121
+ const fakeModule = new FakeModule();
122
fakeModule.prop = () => {};
123
expect(connect(() => ({}), fakeModule)(targetObj)).toNotThrow();
124
});
0 commit comments