We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7db3bdc commit 0e04ba7Copy full SHA for 0e04ba7
test/array.js
@@ -4,21 +4,14 @@ var tap = require('tap');
4
var trim = require('string.prototype.trim');
5
var concat = require('concat-stream');
6
7
-tap.test('array test', function (assert) {
8
- assert.plan(1);
+tap.test('array test', function (tt) {
+ tt.plan(1);
9
10
var test = tape.createHarness();
11
12
- test.createStream().pipe(concat(function (body) {
+ test.createStream().pipe(concat(function (rows) {
13
14
- var rs = body.toString('utf8').split('\n').map(function (r) {
15
- if (r && typeof r === 'object') {
16
- return { id : r.id, ok : r.ok, name : trim(r.name) };
17
- }
18
- else return r;
19
- });
20
-
21
- assert.same(rs, [
+ tt.same(rows.toString('utf8').split('\n'), [
22
'TAP version 13',
23
'# array',
24
'ok 1 should be equivalent',
0 commit comments