Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit f9f56cd

Browse files
committed
evaluated bundled code
1 parent bd1724f commit f9f56cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/e2e/e2e_spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
const chai = require('chai')
12
const path = require('path')
23
const snapshot = require('snap-shot-it')
34

45
const fs = require('../../fs')
56
const preprocessor = require('../../index')
67

8+
/* eslint-disable-next-line no-unused-vars */
9+
const expect = chai.expect
10+
711
beforeEach(function () {
812
fs.removeSync(path.join(__dirname, '_test-output'))
913
})
@@ -31,6 +35,8 @@ describe('imports and exports', () => {
3135
// do not generate source maps
3236
return bundle('math_spec.js', { browserifyOptions: { debug: false } }).then((output) => {
3337
snapshot('math default exports', output)
38+
// now check that bundled tests work
39+
eval(output)
3440
})
3541
})
3642
})

0 commit comments

Comments
 (0)