Skip to content

Commit

Permalink
test: add result.code as 2nd callback argument of helpers/testPlugin
Browse files Browse the repository at this point in the history
Because want to do strict testing including not only code execution results but also generated code
  • Loading branch information
59naga committed Jul 2, 2018
1 parent 63b7f9d commit 44bf616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers.js
Expand Up @@ -23,7 +23,7 @@ export function testPlugin (code, options, fn) {

vm.runInNewContext(result.code, sandbox)

fn(sandbox.module.exports)
fn(sandbox.module.exports, result.code)
}

export function inspect (object) {
Expand Down

0 comments on commit 44bf616

Please sign in to comment.