Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwestendorf committed Oct 7, 2022
1 parent f3802fe commit 6bf7a94
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/authorization.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = (options) => {
}

this.log('Validating Private Token...')
const authHeader = new String(req.get('Authorization'))
const authHeader = String(req.get('Authorization'))

if (authHeader.replace(/Bearer (.*)$/i, '$1') !== this.options.privateToken) {
this.log('Invalid Private Token')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"scripts": {
"test": "teenytest 'test/**/*-test.js' --helper test/helper.js",
"lint": "./node_modules/.bin/eslint.js lib/* test/* *.js",
"lint": "./node_modules/.bin/eslint lib/* test/* *.js",
"testncov": "nyc --reporter=lcov --reporter=text teenytest 'test/**/*-test.js' --helper test/helper.js && ./node_modules/.bin/eslint *.js, **/**.js"
},
"teenytest": {
Expand Down
1 change: 0 additions & 1 deletion test/helper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* global td:true */
/* global server:true */
const { spawn } = require('child_process')

global.td = require('testdouble')

Expand Down
2 changes: 0 additions & 2 deletions test/lib/authorization-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const assert = require('assert')

const Authorization = require('../../lib/authorization')

let requestToken = '123456'
Expand Down

0 comments on commit 6bf7a94

Please sign in to comment.