Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Replace arrow functions (follow-up for #660)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Jun 28, 2019
1 parent 9071230 commit 7c5a0b1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/init-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,16 @@ buster.testCase('Init & open()', {
'support open options': function (done) {
var down = memdown()

levelup(down, (err, up) => {
levelup(down, function (err, up) {
refute(err, 'no error')

up.close(() => {
down.open = (opts) => {
up.close(function () {
down.open = function (opts) {
assert.equals(opts.foo, 'bar')
done()
}

up.open({
foo: 'bar'
})
up.open({ foo: 'bar' })
})
})
}
Expand Down

0 comments on commit 7c5a0b1

Please sign in to comment.