unicode.js 461 B

12345678910111213141516171819
  1. var browserify = require('../');
  2. var vm = require('vm');
  3. var test = require('tap').test;
  4. test('unicode entry', function (t) {
  5. t.plan(2);
  6. var b = browserify(__dirname + '/unicode/main.js');
  7. b.bundle(function (err, src) {
  8. var c = {
  9. done : function (one, two) {
  10. t.equal(one, 1);
  11. t.equal(two, 2);
  12. t.end();
  13. }
  14. };
  15. vm.runInNewContext(src, c);
  16. });
  17. });