Skip to content

Commit

Permalink
Fix hot middleware client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuch committed Dec 29, 2016
1 parent e4c180a commit b3e75c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/react-cosmos-webpack/src/__tests__/webpack-config.js
Expand Up @@ -75,7 +75,9 @@ describe('without hmr', () => {
});

test('does not add hot middleware client to entries', () => {
expect(webpackConfig.entry).not.toContain(require.resolve('webpack-hot-middleware/client'));
expect(webpackConfig.entry).not.toContain(
`${require.resolve('webpack-hot-middleware/client')}?reload=true`
);
});

test('creates proper output', () => {
Expand Down Expand Up @@ -134,7 +136,9 @@ describe('with hmr', () => {
});

test('adds hot middleware client to entries', () => {
expect(webpackConfig.entry).toContain(require.resolve('webpack-hot-middleware/client?reload=true'));
expect(webpackConfig.entry).toContain(
`${require.resolve('webpack-hot-middleware/client')}?reload=true`
);
});
});

Expand Down

0 comments on commit b3e75c9

Please sign in to comment.