Skip to content

Commit

Permalink
chore(linting): no-unused-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 4, 2024
1 parent d3836e6 commit 73bddd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ const writeFileAtomic = t.mock('..', {
}
cb()
},
realpathSync (filename, cb) {
realpathSync (filename) {
return filename
},
openSync (tmpfile, options) {
openSync (tmpfile) {
if (/noopen/.test(tmpfile)) {
throw createErr('ENOOPEN')
}
Expand All @@ -105,10 +105,10 @@ const writeFileAtomic = t.mock('..', {
throw createErr('ENOFSYNC')
}
},
closeSync (fd) {
closeSync () {
closeSyncCalled++
},
chownSync (tmpfile, uid, gid) {
chownSync (tmpfile) {
if (/nochown/.test(tmpfile)) {
throw createErr('ENOCHOWN')
}
Expand All @@ -122,7 +122,7 @@ const writeFileAtomic = t.mock('..', {
throw createErr('EPERM')
}
},
chmodSync (tmpfile, mode) {
chmodSync (tmpfile) {
if (/nochmod/.test(tmpfile)) {
throw createErr('ENOCHMOD')
}
Expand All @@ -136,7 +136,7 @@ const writeFileAtomic = t.mock('..', {
throw createErr('EPERM')
}
},
renameSync (tmpfile, filename) {
renameSync (tmpfile) {
if (/norename/.test(tmpfile)) {
throw createErr('ENORENAME')
}
Expand Down Expand Up @@ -412,7 +412,7 @@ t.test('promises', async t => {
t.match(tmpfile, /^good\.\d+$/, 'tmpfileCreated is called for success')

await writeFileAtomic('good', 'test', {
tmpfileCreated (gottmpfile) {
tmpfileCreated () {
return Promise.resolve()
},
})
Expand Down
10 changes: 5 additions & 5 deletions test/concurrency.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ const fs = {
}
cb()
},
realpathSync (filename, cb) {
realpathSync (filename) {
return filename
},
openSync (tmpfile, options) {
openSync (tmpfile) {
if (/noopen/.test(tmpfile)) {
throw new Error('ENOOPEN')
}
Expand All @@ -77,17 +77,17 @@ const fs = {
}
},
closeSync () { },
chownSync (tmpfile, uid, gid) {
chownSync (tmpfile) {
if (/nochown/.test(tmpfile)) {
throw new Error('ENOCHOWN')
}
},
chmodSync (tmpfile, mode) {
chmodSync (tmpfile) {
if (/nochmod/.test(tmpfile)) {
throw new Error('ENOCHMOD')
}
},
renameSync (tmpfile, filename) {
renameSync (tmpfile) {
if (/norename/.test(tmpfile)) {
throw new Error('ENORENAME')
}
Expand Down

0 comments on commit 73bddd9

Please sign in to comment.