1.js 375 B

12345678910111213
  1. var test = require('tape')
  2. , streamify
  3. ;
  4. test('require', function(t) {
  5. streamify = require('..');
  6. t.ok(streamify, 'stream-array exists');
  7. t.equal(typeof(streamify), 'function', 'require returns an object');
  8. t.equal(0, Object.keys(streamify).length, 'No hidden exports exports');
  9. t.equal(1, streamify.length, 'No hidden arguments');
  10. t.end();
  11. });