File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export const getAllProducts = ({ dispatch }) => {
49
49
// with inject-loader, this returns a module factory
50
50
// that allows us to inject mocked dependencies.
51
51
import { expect } from ' chai'
52
- const actionsInjector = require (' inject!babel! ./actions' )
52
+ const actionsInjector = require (' inject!./actions' )
53
53
54
54
// create the module with our mocks
55
55
const actions = actionsInjector ({
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ import { expect } from 'chai'
48
48
// 这里因为需要用 webpack loader 所以使用 require() 而不是 import
49
49
// inject-loader 会返回一个工厂函数。这个工厂函数让我们可以对该模块的
50
50
// 依赖进行 mock
51
- const actionsInjector = require (' inject!babel! ./actions' )
51
+ const actionsInjector = require (' inject!./actions' )
52
52
53
53
// 调用工厂函数,获得 mock 过依赖的 actions 模块
54
54
const actions = actionsInjector ({
You can’t perform that action at this time.
0 commit comments