Skip to content

Commit

Permalink
remove unncessary inline loader
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 21, 2015
1 parent 9d5905e commit dd38ee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const getAllProducts = ({ dispatch }) => {
// with inject-loader, this returns a module factory
// that allows us to inject mocked dependencies.
import { expect } from 'chai'
const actionsInjector = require('inject!babel!./actions')
const actionsInjector = require('inject!./actions')

// create the module with our mocks
const actions = actionsInjector({
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import { expect } from 'chai'
// 这里因为需要用 webpack loader 所以使用 require() 而不是 import
// inject-loader 会返回一个工厂函数。这个工厂函数让我们可以对该模块的
// 依赖进行 mock
const actionsInjector = require('inject!babel!./actions')
const actionsInjector = require('inject!./actions')

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

0 comments on commit dd38ee0

Please sign in to comment.