removed string templating as not supported by node 0.10 - DK/MW
This commit is contained in:
parent
7d437b29e6
commit
27aaab3161
@ -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();
|
||||||
|
Reference in New Issue
Block a user