Skip to content

Commit

Permalink
test: fix broken #1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
59naga committed Jul 2, 2018
1 parent 44bf616 commit 3f28087
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/index.js
Expand Up @@ -36,11 +36,13 @@ describe('babel-plugin-add-module-exports', () => {
'./src/index.js',
'./src/index.js'
]
}, (module) => {
}, (module, code) => {
assert(module === 'default-entry')

// @see https://github.com/59naga/babel-plugin-add-module-exports/issues/12#issuecomment-157023722
assert(module.default === undefined)

assert(code === `"use strict";\n\nObject.defineProperty(exports, "__esModule", {\n value: true\n});\nexports.default = "default-entry";\nmodule.exports = exports.default;`)
}))

it('should export with `babel-plugin-rewire` (#19)', () =>
Expand Down

0 comments on commit 3f28087

Please sign in to comment.