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