Skip to content

Commit

Permalink
Update leak.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Feb 21, 2022
1 parent afa27ef commit 2768f5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/leak.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ describe('Information Leak', function () {
'Content-Type': 'application/json',
'cookie': 'ajs_anonymous_id=1234567890',
'authorization': 'Bearer eyJhb12345abcdef'
}
},
json:true
}, function (err, response, body) {
t.strictEqual(Object.keys(body).length, 0);
done();
Expand All @@ -30,7 +31,7 @@ describe('Information Leak', function () {
'authorization': 'Bearer eyJhb12345abcdef'
}
}, function (err, response, body) {
t.strictEqual(body, undefined);
t.strictEqual(body, '');
done();
});
});
Expand Down

0 comments on commit 2768f5c

Please sign in to comment.