Skip to content

Commit 2768f5c

Browse files
authored
Update leak.test.js
1 parent afa27ef commit 2768f5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/leak.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ describe('Information Leak', function () {
1313
'Content-Type': 'application/json',
1414
'cookie': 'ajs_anonymous_id=1234567890',
1515
'authorization': 'Bearer eyJhb12345abcdef'
16-
}
16+
},
17+
json:true
1718
}, function (err, response, body) {
1819
t.strictEqual(Object.keys(body).length, 0);
1920
done();
@@ -30,7 +31,7 @@ describe('Information Leak', function () {
3031
'authorization': 'Bearer eyJhb12345abcdef'
3132
}
3233
}, function (err, response, body) {
33-
t.strictEqual(body, undefined);
34+
t.strictEqual(body, '');
3435
done();
3536
});
3637
});

0 commit comments

Comments
 (0)