@@ -682,42 +682,6 @@ describe('volume', function () {
682
682
describe ( '.fstat(fd, callback)' , function ( ) {
683
683
xit ( '...' ) ;
684
684
} ) ;
685
- describe ( '.existsSync(path)' , function ( ) {
686
- var vol = volume_1 . Volume . fromJSON ( { '/foo' : 'bar' } ) ;
687
- it ( 'Returns true if file exists' , function ( ) {
688
- var result = vol . existsSync ( '/foo' ) ;
689
- chai_1 . expect ( result ) . to . be . true ;
690
- } ) ;
691
- it ( 'Returns false if file does not exist' , function ( ) {
692
- var result = vol . existsSync ( '/foo2' ) ;
693
- chai_1 . expect ( result ) . to . be . false ;
694
- } ) ;
695
- } ) ;
696
- describe ( '.exists(path, callback)' , function ( ) {
697
- var vol = volume_1 . Volume . fromJSON ( { '/foo' : 'bar' } ) ;
698
- it ( 'Returns true if file exists' , function ( done ) {
699
- vol . exists ( '/foo' , function ( exists ) {
700
- chai_1 . expect ( exists ) . to . be . true ;
701
- done ( ) ;
702
- } ) ;
703
- } ) ;
704
- it ( 'Returns false if file does not exist' , function ( done ) {
705
- vol . exists ( '/foo2' , function ( exists ) {
706
- chai_1 . expect ( exists ) . to . be . false ;
707
- done ( ) ;
708
- } ) ;
709
- } ) ;
710
- it ( 'Throws correct error if callback not provided' , function ( done ) {
711
- try {
712
- vol . exists ( '/foo' , undefined ) ;
713
- throw new Error ( 'not_this' ) ;
714
- }
715
- catch ( err ) {
716
- chai_1 . expect ( err . message ) . to . equal ( 'callback must be a function' ) ;
717
- done ( ) ;
718
- }
719
- } ) ;
720
- } ) ;
721
685
describe ( '.linkSync(existingPath, newPath)' , function ( ) {
722
686
var vol = new volume_1 . Volume ;
723
687
it ( 'Create a new link' , function ( ) {
0 commit comments