Skip to content

Commit 8c6ac14

Browse files
committed
Test that callback is only invoked once, failing
1 parent 07f5c9a commit 8c6ac14

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,17 @@ rollers.forEach(({rollup, version, opts, noTreeshake}) => {
186186
assert.is(imported.size, imp.size)
187187
})
188188
})
189+
190+
test.failing(`${version}: callback is only invoked once`, async (assert) => {
191+
let count = 0
192+
let writeTo = () => ++count
193+
194+
let rollOpts = Object.assign({plugins: [plugin({writeTo})]}, multiInputOpts)
195+
rollOpts.experimentalCodeSplitting = true
196+
let bundle = await rollup(rollOpts)
197+
await bundle.generate({format: 'cjs'})
198+
199+
assert.is(count, 1)
200+
})
189201
}
190202
})

0 commit comments

Comments
 (0)