Skip to content

Commit bdc9039

Browse files
committed
chore: fix linting in test files
1 parent 7cc481b commit bdc9039

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/check-response.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ t.test('log x-fetch-attempts header value', async t => {
8181
t.test('log the url fetched', t => {
8282
const headers = new Headers()
8383
const EE = require('events')
84-
headers.get = header => undefined
84+
headers.get = () => undefined
8585
const res = Object.assign({}, mockFetchRes, {
8686
headers,
8787
status: 200,
@@ -110,7 +110,7 @@ t.test('log the url fetched', t => {
110110
t.test('redact password from log', t => {
111111
const headers = new Headers()
112112
const EE = require('events')
113-
headers.get = header => undefined
113+
headers.get = () => undefined
114114
const res = Object.assign({}, mockFetchRes, {
115115
headers,
116116
status: 200,
@@ -138,7 +138,7 @@ t.test('redact password from log', t => {
138138
t.test('redact well known token from log', t => {
139139
const headers = new Headers()
140140
const EE = require('events')
141-
headers.get = header => undefined
141+
headers.get = () => undefined
142142
const res = Object.assign({}, mockFetchRes, {
143143
headers,
144144
status: 200,

test/errors.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ t.test('OTP error with prompt', async t => {
141141
}
142142
return true
143143
})
144-
.reply((...args) => {
144+
.reply(() => {
145145
if (OTP === '12345') {
146146
return [200, { ok: 'this is fine' }, {}]
147147
} else {
@@ -171,7 +171,7 @@ t.test('OTP error with prompt, expired OTP in settings', async t => {
171171
}
172172
return true
173173
})
174-
.reply((...args) => {
174+
.reply(() => {
175175
if (OTP === '12345') {
176176
return [200, { ok: 'this is fine' }, {}]
177177
} else {
@@ -189,7 +189,7 @@ t.test('OTP error with prompt, expired OTP in settings', async t => {
189189
t.test('OTP error with prompt that fails', t => {
190190
tnock(t, OPTS.registry)
191191
.get('/otplease')
192-
.reply((...args) => {
192+
.reply(() => {
193193
return [401, { error: 'otp, please' }, { 'www-authenticate': 'otp' }]
194194
})
195195

@@ -202,7 +202,7 @@ t.test('OTP error with prompt that fails', t => {
202202
t.test('OTP error with prompt that returns nothing', t => {
203203
tnock(t, OPTS.registry)
204204
.get('/otplease')
205-
.reply((...args) => {
205+
.reply(() => {
206206
return [401, { error: 'otp, please' }, { 'www-authenticate': 'otp' }]
207207
})
208208

0 commit comments

Comments
 (0)