Permalink
Browse files

Fix "path.existsSync" deprecation warning.

  • Loading branch information...
1 parent 97ca7a8 commit 41c53f67f88fec72c5709a3f023efa7f3760adc2 @justmoon justmoon committed Jul 24, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/handle-test.coffee
View
@@ -2,6 +2,8 @@ assert = require 'assert'
crypto = require 'crypto'
leveldb = require '../lib'
path = require 'path'
+fs = require 'fs'
+exists = fs.existsSync || path.existsSync
describe 'Handle', ->
@@ -37,7 +39,7 @@ describe 'Handle', ->
it 'should repair database', (done) ->
leveldb.repair filename, (err) ->
assert.ifError err
- assert path.existsSync filename
+ assert exists filename
done()
it 'should get property', (done) ->

0 comments on commit 41c53f6

Please sign in to comment.