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 }) => {
7272// with inject-loader, this returns a module factory
7373// that allows us to inject mocked dependencies.
7474import { expect } from ' chai'
75- const actionsInjector = require (' inject!./actions' )
75+ const actionsInjector = require (' inject-loader !./actions' )
7676
7777// create the module with our mocks
7878const actions = actionsInjector ({
@@ -213,7 +213,7 @@ mocha test-bundle.js
213213#### Running in Browser
214214
2152151 . 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' ` .
2172173 . Start ` webpack-dev-server ` using the config
2182184 . Go to ` localhost:8080/webpack-dev-server/test-bundle ` .
219219
You can’t perform that action at this time.
0 commit comments