Browse Source

Update testing.md (#844)

Alexander Sokolov 8 years ago
parent
commit
582a3551c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/en/testing.md

+ 2 - 2
docs/en/testing.md

@@ -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`.