12345678910111213141516171819 |
- var vm = require('vm');
- var browserify = require('../');
- var test = require('tap').test;
- test('cached require results', function (t) {
- t.plan(1);
-
- var b = browserify();
- b.require('seq');
- b.bundle(function (err, src) {
- var c = {};
- vm.runInNewContext(src, c);
-
- var seq0 = c.require('seq');
- var seq1 = c.require('seq');
-
- t.ok(seq0 === seq1);
- });
- });
|