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

Replace arrow functions (follow-up for #660) #662

Merged
merged 1 commit into from
Jun 28, 2019
Merged
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
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