Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ afterEach(done => rimraf(tmp, done))
test('successfully write file', (assert) => {
assert.plan(2)

let target = path.join(tmp, 'foo')
const target = path.join(tmp, 'foo')

mkdirp(tmp)
.then(() => write(target, 'bar'))
Expand All @@ -33,7 +33,7 @@ test("throw a type error when the path isn't a string", assert => {
test('throw an error when the encoding is not supported', assert => {
assert.plan(1)

let target = path.join(tmp, 'fake', 'path')
const target = path.join(tmp, 'fake', 'path')

write(target, 'foo')
.catch((err) => assert.equal(err.code, 'ENOENT'))
Expand Down