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

Commit 9318f99

Browse files
authored
Replace arrow functions (follow-up for #660) (#662)
1 parent 9071230 commit 9318f99

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/init-test.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,16 @@ buster.testCase('Init & open()', {
6363
'support open options': function (done) {
6464
var down = memdown()
6565

66-
levelup(down, (err, up) => {
66+
levelup(down, function (err, up) {
6767
refute(err, 'no error')
6868

69-
up.close(() => {
70-
down.open = (opts) => {
69+
up.close(function () {
70+
down.open = function (opts) {
7171
assert.equals(opts.foo, 'bar')
7272
done()
7373
}
7474

75-
up.open({
76-
foo: 'bar'
77-
})
75+
up.open({ foo: 'bar' })
7876
})
7977
})
8078
}

0 commit comments

Comments
 (0)