Skip to content

Commit

Permalink
make skipped tests output something
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Apr 8, 2014
1 parent b49cf0f commit f93f144
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ test('convert to buffer from uint8array', function (t) {
t.deepEqual(arr, new Buffer([1, 2, 3]), 'contents equal')
t.ok(Buffer.isBuffer(arr), 'is buffer')
t.equal(arr.readUInt16BE(0), 258)
} else {
t.pass('browser lacks uint8array support, skip test')
}
t.end()
})
Expand All @@ -21,6 +23,8 @@ test('convert to buffer from another array type (uint32array)', function (t) {
t.deepEqual(arr, new Buffer([1, 2, 3]), 'contents equal')
t.ok(Buffer.isBuffer(arr), 'is buffer')
t.equal(arr.readUInt16BE(0), 258)
} else {
t.pass('browser lacks uint32array support, skip test')
}
t.end()
})

0 comments on commit f93f144

Please sign in to comment.