   describe "with an empty input, and convenient option", ->
     output = {}
     before (done) ->
-      child = ephemeris {}, convenient: true
-      child.stdout.on "data", (data) ->
+      ephemerisData done, {}, convenient: true, (data) ->
         output = json.parse data.toString()
-        done()
 
     it "should produce some results", ->
       output.should.have.keys '1'

colors     = require 'colors'
json       = require 'jsonify'
diff       = require('difflet')({ comma: 'first', indent: 2, comment: true })


describe "ephemeris", ->

      fs.readFile "test/io/out/nativity.json", (err, data) ->
        expect = json.parse data.toString()
        fs.readFile "test/io/for/nativity.json", (err, data) ->
          ephemerisData done, json.parse(data.toString()), convenient: true, (data) ->
            output = json.parse data.toString()

    it "should match the corresponding out[put] data", ->
      assert.deepEqual output, expect,
