Skip to content

Commit

Permalink
fix(test): remove monkey inspection of function params
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Kristian Flaatten committed Jul 1, 2016
1 parent e4828b7 commit 62c5cba
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/unit/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,6 @@ describe('auth', () => {

it('returns middleware function', () => {
assert.equal(typeof middleware, 'function');

const args = middleware
.toString()
.split('\n')[0]
.replace(/.*\(|\).*/ig, '')
.split(', ');

assert.deepEqual(args, ['req', 'res', 'next']);
});

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

0 comments on commit 62c5cba

Please sign in to comment.