Skip to content

Commit dd38ee0

Browse files
committed
remove unncessary inline loader
1 parent 9d5905e commit dd38ee0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: docs/en/testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const getAllProducts = ({ dispatch }) => {
4949
// with inject-loader, this returns a module factory
5050
// that allows us to inject mocked dependencies.
5151
import { expect } from 'chai'
52-
const actionsInjector = require('inject!babel!./actions')
52+
const actionsInjector = require('inject!./actions')
5353

5454
// create the module with our mocks
5555
const actions = actionsInjector({

Diff for: docs/zh-cn/testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import { expect } from 'chai'
4848
// 这里因为需要用 webpack loader 所以使用 require() 而不是 import
4949
// inject-loader 会返回一个工厂函数。这个工厂函数让我们可以对该模块的
5050
// 依赖进行 mock
51-
const actionsInjector = require('inject!babel!./actions')
51+
const actionsInjector = require('inject!./actions')
5252

5353
// 调用工厂函数,获得 mock 过依赖的 actions 模块
5454
const actions = actionsInjector({

0 commit comments

Comments
 (0)