test('should create directory and write file to it', function (done) {
    var promise = thenWriteJson('./fixture/foobar.txt', {foo: 'bar'})

    promise.then(function (res) {
      test.equal(res, true)