|
@@ -72,7 +72,7 @@ export const getAllProducts = ({ commit }) => {
|
|
|
// with inject-loader, this returns a module factory
|
|
|
// that allows us to inject mocked dependencies.
|
|
|
import { expect } from 'chai'
|
|
|
-const actionsInjector = require('inject!./actions')
|
|
|
+const actionsInjector = require('inject-loader!./actions')
|
|
|
|
|
|
// create the module with our mocks
|
|
|
const actions = actionsInjector({
|
|
@@ -213,7 +213,7 @@ mocha test-bundle.js
|
|
|
#### Running in Browser
|
|
|
|
|
|
1. Install `mocha-loader`
|
|
|
-2. Change the `entry` from the webpack config above to `'mocha!babel!./test.js'`.
|
|
|
+2. Change the `entry` from the webpack config above to `'mocha-loader!babel-loader!./test.js'`.
|
|
|
3. Start `webpack-dev-server` using the config
|
|
|
4. Go to `localhost:8080/webpack-dev-server/test-bundle`.
|
|
|
|