Skip to content

Commit

Permalink
Fix repair-test for multilang windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Feb 15, 2016
1 parent c100468 commit a02ac81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/repair-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ test('test callback-less, 1-arg, repair() throws', function (t) {
t.end()
})

test('test repair non-existant directory returns error', function (t) {
test('test repair non-existent directory returns error', function (t) {
leveldown.repair('/1/2/3/4', function (err) {
if (process.platform !== 'win32')
t.ok(/no such file or directory/i.test(err), 'error on callback')
else
t.ok(/the system cannot find the path specified/i.test(err), 'error on callback')
t.ok(/IO error/i.test(err), 'error on callback')
t.end()
})
})
Expand Down

0 comments on commit a02ac81

Please sign in to comment.