-
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Halliday
committed
Mar 5, 2014
1 parent
984b21f
commit 9ee8421
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }); | ||
}); | ||
}); |