spread.js 421 B

1234567891011121314
  1. var browserify = require('../');
  2. var test = require('tap').test;
  3. var vm = require('vm');
  4. var hasObjectSpread = require('has-object-spread')();
  5. test('yield', { skip: !hasObjectSpread }, function (t) {
  6. t.plan(2);
  7. var b = browserify(__dirname + '/spread/main.js');
  8. b.bundle(function (err, src) {
  9. t.error(err);
  10. t.notEqual(src.indexOf('...b'), -1, 'passed through spread syntax')
  11. });
  12. });