Skip to content

Commit 62c5cba

Browse files
author
Hans Kristian Flaatten
committed
fix(test): remove monkey inspection of function params
1 parent e4828b7 commit 62c5cba

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

test/unit/auth.js

-8
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,6 @@ describe('auth', () => {
172172

173173
it('returns middleware function', () => {
174174
assert.equal(typeof middleware, 'function');
175-
176-
const args = middleware
177-
.toString()
178-
.split('\n')[0]
179-
.replace(/.*\(|\).*/ig, '')
180-
.split(', ');
181-
182-
assert.deepEqual(args, ['req', 'res', 'next']);
183175
});
184176

185177
it('looks up user by Authorization header', done => {

0 commit comments

Comments
 (0)