Skip to content

Commit 7b143b7

Browse files
committed
tests: fix misleading test descriptions
1 parent 239d002 commit 7b143b7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/basic-auth.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,30 @@ describe('auth(req)', function () {
4545
})
4646

4747
describe('with no Authorization field', function () {
48-
it('should return null', function () {
48+
it('should return undefined', function () {
4949
var req = request()
50-
assert(auth(req) == null)
50+
assert.strictEqual(auth(req), undefined)
5151
})
5252
})
5353

5454
describe('with malformed Authorization field', function () {
55-
it('should return null', function () {
55+
it('should return undefined', function () {
5656
var req = request('Something')
57-
assert(auth(req) == null)
57+
assert.strictEqual(auth(req), undefined)
5858
})
5959
})
6060

6161
describe('with malformed Authorization scheme', function () {
62-
it('should return null', function () {
62+
it('should return undefined', function () {
6363
var req = request('basic_Zm9vOmJhcg==')
64-
assert(auth(req) == null)
64+
assert.strictEqual(auth(req), undefined)
6565
})
6666
})
6767

6868
describe('with malformed credentials', function () {
69-
it('should return null', function () {
69+
it('should return undefined', function () {
7070
var req = request('basic Zm9vcgo=')
71-
assert(auth(req) == null)
71+
assert.strictEqual(auth(req), undefined)
7272
})
7373
})
7474

0 commit comments

Comments
 (0)