holes.js 255 B

123456789101112131415
  1. var test = require('tape');
  2. var inspect = require('../');
  3. var xs = ['a', 'b'];
  4. xs[5] = 'f';
  5. xs[7] = 'j';
  6. xs[8] = 'k';
  7. test('holes', function (t) {
  8. t.plan(1);
  9. t.equal(
  10. inspect(xs),
  11. "[ 'a', 'b', , , , 'f', , 'j', 'k' ]"
  12. );
  13. });