Skip to content
This repository
Browse code

Fix "path.existsSync" deprecation warning.

  • Loading branch information...
commit 41c53f67f88fec72c5709a3f023efa7f3760adc2 1 parent 97ca7a8
Stefan Thomas authored July 24, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  test/handle-test.coffee
4  test/handle-test.coffee
@@ -2,6 +2,8 @@ assert  = require 'assert'
2 2
 crypto  = require 'crypto'
3 3
 leveldb = require '../lib'
4 4
 path    = require 'path'
  5
+fs      = require 'fs'
  6
+exists  = fs.existsSync || path.existsSync
5 7
 
6 8
 
7 9
 describe 'Handle', ->
@@ -37,7 +39,7 @@ describe 'Handle', ->
37 39
   it 'should repair database', (done) ->
38 40
     leveldb.repair filename, (err) ->
39 41
       assert.ifError err
40  
-      assert path.existsSync filename
  42
+      assert exists filename
41 43
       done()
42 44
 
43 45
   it 'should get property', (done) ->

0 notes on commit 41c53f6

Please sign in to comment.
Something went wrong with that request. Please try again.