Skip to content

Commit

Permalink
Fixed syntax to be compatible with older node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cainaleaouk committed Jul 7, 2017
1 parent 212201a commit a2a9796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fast.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe('aws4', function() {
})
it('should remove protocol from host / hostname', function() {
var host = 'sqs.us-east-1.amazonaws.com';
var opts = aws4.sign({hostname: `https://${host}`, headers: {Date: date}})
var opts = aws4.sign({hostname: 'https://'+host, headers: {Date: date}})
opts.headers['Host'].should.equal(host)
opts.headers['X-Amz-Date'].should.equal(iso)
opts.headers.Authorization.should.equal(auth)
Expand All @@ -192,7 +192,7 @@ describe('aws4', function() {
})
it('should remove protocol from host', function() {
var host = 'sqs.us-east-1.amazonaws.com';
var opts = aws4.sign({host: `https://${host}`, headers: {Date: date}})
var opts = aws4.sign({host: 'https://'+host, headers: {Date: date}})
opts.headers['Host'].should.equal(host)
opts.headers['X-Amz-Date'].should.equal(iso)
opts.headers.Authorization.should.equal(auth)
Expand Down

0 comments on commit a2a9796

Please sign in to comment.