   it 'should remove all the files and directories recursively', ->
     fu.rmSync "#{root}/test/fixtures/utils/files/rm"
 
-    expect(existsSync "#{root}/test/fixtures/utils/files/rm").toBeFalsy()
+    expect(fs.existsSync "#{root}/test/fixtures/utils/files/rm").toBeFalsy()
 
 describe 'rm', ->
   beforeEach ->

  deep = "#{base}/bar"

  afterEach ->
    fs.rmdirSync deep if existsSync deep
    fs.rmdirSync base if existsSync base

  describe 'when called with a valid path to the dir to create', ->
    it 'should create the directory', ->
      fu.ensurePathSync deep
      expect(existsSync deep).toBeTruthy()

describe 'ensurePath', ->
  base = "#{root}/test/fixtures/utils/files/foo"
  deep = "#{base}/bar"

  afterEach ->
    fs.rmdirSync deep if existsSync deep
    fs.rmdirSync base if existsSync base

  describe 'when called with a valid path to the dir to create', ->
    it 'should create the directory', (done) ->
      fu.ensurePath deep, (err, created) ->
        expect(existsSync deep).toBeTruthy()
        expect(err).toBeNull()
        expect(created).toBeTruthy()
        done()

  it 'should remove all the files and directories recursively', (done) ->
    fu.rm "#{root}/test/fixtures/utils/files/rm", (err) ->

      expect(fs.existsSync "#{root}/test/fixtures/utils/files/rm").toBeFalsy()
      done()

describe 'readFiles', ->
