2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

removed string templating as not supported by node 0.10 - DK/MW

This commit is contained in:
Mathew Woods 2016-10-20 11:58:18 -05:00 committed by Fabian Arndt
parent 7d437b29e6
commit 27aaab3161

View File

@ -51,7 +51,7 @@ describe('authorizer', function() {
it('auth headers are supported', function (done){
var socket = io.connect('http://localhost:9000', {
'forceNew':true,
'extraHeaders': {'Authorization': `Bearer ${this.token}`}
'extraHeaders': {'Authorization': 'Bearer ' + this.token}
});
socket.on('connect', function(){
socket.close();
@ -83,7 +83,7 @@ describe('authorizer', function() {
it('auth headers are supported', function (done){
var socket = io.connect('http://localhost:9000', {
'forceNew':true,
'extraHeaders': {'Authorization': `Bearer ${this.token}`}
'extraHeaders': {'Authorization': 'Bearer ' + this.token}
});
socket.on('connect', function(){
socket.close();