File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export const getAllProducts = ({ commit }) => {
72
72
// with inject-loader, this returns a module factory
73
73
// that allows us to inject mocked dependencies.
74
74
import { expect } from ' chai'
75
- const actionsInjector = require (' inject!./actions' )
75
+ const actionsInjector = require (' inject-loader !./actions' )
76
76
77
77
// create the module with our mocks
78
78
const actions = actionsInjector ({
@@ -213,7 +213,7 @@ mocha test-bundle.js
213
213
#### Running in Browser
214
214
215
215
1 . Install ` mocha-loader `
216
- 2 . Change the ` entry ` from the webpack config above to ` 'mocha!babel!./test.js' ` .
216
+ 2 . Change the ` entry ` from the webpack config above to ` 'mocha-loader !babel-loader !./test.js' ` .
217
217
3 . Start ` webpack-dev-server ` using the config
218
218
4 . Go to ` localhost:8080/webpack-dev-server/test-bundle ` .
219
219
You can’t perform that action at this time.
0 commit comments