How to use the enzyme.mount.bind function in enzyme

To help you get started, we’ve selected a few enzyme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flowcommerce / redux-fetch / test / specs / components / fetch.js View on Github external
it('should throw when store is not in scope', () => {
    const getAsyncState = sinon.stub();
    const WrappedComponent = fetch(getAsyncState)(Component);
    expect(mount.bind(null, )).to.throw;
  });
});
github flowcommerce / redux-fetch / test / specs / components / FetchProvider.js View on Github external
it('should throw when store is not in scope', () => {
    const routerState = createMockRouterState();

    expect(mount.bind(null,
      
        
      ,
    )).to.throw;
  });
github flowcommerce / redux-fetch / test / specs / components / fetch.js View on Github external
it('should throw when store is not in scope', () => {
    const getAsyncState = sinon.stub();
    const WrappedComponent = fetch(getAsyncState, {
      forceInitialFetch: false,
    })(Component);
    expect(mount.bind(null, )).to.throw;
  });
});