Skip to content

Commit

Permalink
failing undef test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Mar 5, 2014
1 parent 984b21f commit 9ee8421
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions test/undef.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
var tape = require('../');
var tap = require('tap');
var concat = require('concat-stream');

tap.test('array test', function (tt) {
tt.plan(1);

var test = tape.createHarness();
test.createStream().pipe(concat(function (body) {
tt.equal(
body.toString('utf8'),
'TAP version 13\n'
+ '# undef\n'
+ 'not ok 1 should be equivalent\n'
+ ' ---\n'
+ ' operator: deepEqual\n'
+ ' expected: { beep: undefined }\n'
+ ' actual: {}\n'
+ ' ...\n'
+ '\n'
+ '1..1\n'
+ '# tests 1\n'
+ '# pass 0\n'
+ '# fail 1\n'
);
}));

test('undef', function (t) {
t.plan(1);
t.deepEqual({}, { beep: undefined });
});
});

0 comments on commit 9ee8421

Please sign in to comment.