Skip to content

Commit 582a355

Browse files
Alex-Sokolovktsn
authored andcommitted
Update testing.md (#844)
1 parent c2aed43 commit 582a355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
7474
import { expect } from 'chai'
75-
const actionsInjector = require('inject!./actions')
75+
const actionsInjector = require('inject-loader!./actions')
7676

7777
// create the module with our mocks
7878
const actions = actionsInjector({
@@ -213,7 +213,7 @@ mocha test-bundle.js
213213
#### Running in Browser
214214

215215
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'`.
217217
3. Start `webpack-dev-server` using the config
218218
4. Go to `localhost:8080/webpack-dev-server/test-bundle`.
219219

0 commit comments

Comments
 (0)