From 83d8844b7090d008d3b98c0446f7d10b750acb14 Mon Sep 17 00:00:00 2001 From: Ryan Graham Date: Wed, 14 Jan 2015 13:31:30 -0800 Subject: [PATCH] tests: fix Bearer token test --- test/access-token.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/access-token.test.js b/test/access-token.test.js index e20521a8..574a6fa1 100644 --- a/test/access-token.test.js +++ b/test/access-token.test.js @@ -34,7 +34,7 @@ describe('loopback.token(options)', function() { token = 'Bearer ' + new Buffer(token).toString('base64'); createTestAppAndRequest(this.token, done) .get('/') - .set('authorization', this.token.id) + .set('authorization', token) .expect(200) .end(done); });