For some reason I got next exception on test execution:
$ npm run test
> metalsmith-jstransformer@0.10.0 test /Users/ych/projects/metalsmith-jstransformer
> node test
• metalsmith-jstransformer
assert.js:81
throw new assert.AssertionError({
^
AssertionError: '(function(){}).call(this);' == '(function(){var a,c;a=42,c=!0}).call(this);'
at /Users/ych/projects/metalsmith-jstransformer/node_modules/assert-dir-equal/lib/index.js:30:14
at Array.forEach (native)
at assertDirEqual (/Users/ych/projects/metalsmith-jstransformer/node_modules/assert-dir-equal/lib/index.js:26:11)
at Metalsmith.<anonymous> (/Users/ych/projects/metalsmith-jstransformer/test/index.js:35:7)
at Immediate.<anonymous> (/Users/ych/projects/metalsmith-jstransformer/node_modules/co/index.js:52:14)
at runCallback (timers.js:666:20)
at tryOnImmediate (timers.js:639:5)
at processImmediate [as _immediateCallback] (timers.js:611:5)
The reason is:
$ diff test/fixtures/basic/build/scripts/main.js test/fixtures/basic/expected/scripts/main.js
1c1
< (function(){}).call(this);
\ No newline at end of file
---
> (function(){var a,c;a=42,c=!0}).call(this);
\ No newline at end of file
For some reason I got next exception on test execution:
The reason is:
Installed version of
jstransformer
and ext: