Skip to content

Commit

Permalink
chore: lint with standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Apr 29, 2022
1 parent 18c5d9a commit 3cb5854
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions test/hook.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('hook rejects for missing header', (t) => {
}
const response = {
code: () => response,
send: send
send
}

function send (body) {
Expand All @@ -37,8 +37,8 @@ test('hook rejects for missing header with custom content type', (t) => {
}
const response = {
code: () => response,
header: header,
send: send
header,
send
}
function header (key, value) {
t.ok(key)
Expand Down Expand Up @@ -66,7 +66,7 @@ test('hook rejects header without bearer prefix', (t) => {
}
const response = {
code: () => response,
send: send
send
}

function send (body) {
Expand All @@ -89,7 +89,7 @@ test('hook rejects malformed header', (t) => {
}
const response = {
code: () => response,
send: send
send
}

function send (body) {
Expand All @@ -112,7 +112,7 @@ test('hook accepts correct header', (t) => {
}
const response = {
code: () => response,
send: send
send
}

function send (body) {
Expand All @@ -138,7 +138,7 @@ test('hook accepts correct header and alternate Bearer', (t) => {
}
const response = {
code: () => response,
send: send
send
}

function send (body) {
Expand All @@ -162,7 +162,7 @@ test('hook accepts correct header with extra padding', (t) => {
}
const response = {
code: () => response,
send: send
send
}

function send (body) {
Expand All @@ -189,7 +189,7 @@ test('hook accepts correct header with auth function (promise)', (t) => {
}
const response = {
code: () => response,
send: send
send
}

function send (body) {
Expand All @@ -216,7 +216,7 @@ test('hook accepts correct header with auth function (non-promise)', (t) => {
}
const response = {
code: () => response,
send: send
send
}

function send (body) {
Expand All @@ -240,7 +240,7 @@ test('hook rejects wrong token with keys', (t) => {
}
const response = {
code: () => response,
send: send
send
}

function send (body) {
Expand All @@ -266,8 +266,8 @@ test('hook rejects wrong token with custom content type', (t) => {
}
const response = {
code: () => response,
header: header,
send: send
header,
send
}
function header (key, value) {
t.ok(key)
Expand Down Expand Up @@ -305,7 +305,7 @@ test('hook rejects wrong token with auth function', (t) => {
t.equal(401, status)
return response
},
send: send
send
}

function send (body) {
Expand Down Expand Up @@ -338,7 +338,7 @@ test('hook rejects wrong token with function (resolved promise)', (t) => {
t.equal(401, status)
return response
},
send: send
send
}

function send (body) {
Expand Down Expand Up @@ -371,7 +371,7 @@ test('hook rejects with 500 when functions fails', (t) => {
t.equal(500, status)
return response
},
send: send
send
}

function send (body) {
Expand Down Expand Up @@ -404,7 +404,7 @@ test('hook rejects with 500 when promise rejects', (t) => {
t.equal(500, status)
return response
},
send: send
send
}

function send (body) {
Expand Down Expand Up @@ -437,7 +437,7 @@ test('hook rejects with 500 when promise rejects with non Error', (t) => {
t.equal(500, status)
return response
},
send: send
send
}

function send (body) {
Expand Down Expand Up @@ -465,7 +465,7 @@ test('hook returns proper error for valid key but failing callback', (t) => {
t.equal(500, status)
return response
},
send: send
send
}

function send (body) {
Expand Down Expand Up @@ -501,7 +501,7 @@ test('hook rejects with 500 when functions returns non-boolean', (t) => {
t.equal(500, status)
return response
},
send: send
send
}

function send (body) {
Expand Down Expand Up @@ -534,7 +534,7 @@ test('hook rejects with 500 when promise resolves to non-boolean', (t) => {
t.equal(500, status)
return response
},
send: send
send
}

function send (body) {
Expand Down

0 comments on commit 3cb5854

Please sign in to comment.