Skip to content

Commit

Permalink
Test that callback is only invoked once, failing
Browse files Browse the repository at this point in the history
  • Loading branch information
doesdev committed Jul 8, 2018
1 parent 07f5c9a commit 8c6ac14
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,17 @@ rollers.forEach(({rollup, version, opts, noTreeshake}) => {
assert.is(imported.size, imp.size)
})
})

test.failing(`${version}: callback is only invoked once`, async (assert) => {
let count = 0
let writeTo = () => ++count

let rollOpts = Object.assign({plugins: [plugin({writeTo})]}, multiInputOpts)
rollOpts.experimentalCodeSplitting = true
let bundle = await rollup(rollOpts)
await bundle.generate({format: 'cjs'})

assert.is(count, 1)
})
}
})

0 comments on commit 8c6ac14

Please sign in to comment.