var Task = require('data.task')
jest.mock('./utils/fileUtils')
var fileUtils = require('./utils/fileUtils')

test('should get the config', done => {
  const configfile = Task.of(JSON.stringify({ mongodb: 'foo' }))
  fileUtils.readFile.mockReturnValue(configfile)
  var subject = require('./getConfig')
  subject.getConfig.fork(console.error, t => {
    expect(t).toEqual({ mongodb: 'foo' })
    done()
  })
})

@@ -188,29 +188,25 @@
 ngify(%7B 
-mongodb: 'foo
+foo: 'bar
 ' %7D))%0A  
@@ -366,21 +366,17 @@
 l(%7B 
-mongodb: 'foo
+foo: 'bar
 ' %7D)

make fake more explicit