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

Commit

Permalink
repair error is different on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars-Magnus Skog committed Jan 25, 2016
1 parent c283125 commit 2ae07c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/repair-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ test('test callback-less, 1-arg, repair() throws', function (t) {

test('test repair non-existant directory returns error', function (t) {
leveldown.repair('/1/2/3/4', function (err) {
t.ok(/no such/i.test(err), 'error on callback')
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.end()
})
})
Expand Down

0 comments on commit 2ae07c3

Please sign in to comment.