       fs.readFile "test/io/out/nativity.json", (err, data) ->
         expect = json.parse data.toString()
         fs.readFile "test/io/for/nativity.json", (err, data) ->
-          child = ephemeris convenient json.parse data.toString()
-          child.stderr.on "data", (data) ->
-            console.log data.toString().red
-          child.stdout.on "data", (data) ->
+          ephemerisData done, json.parse(data.toString()), convenient: true, (data) ->
             output = json.parse data.toString()
-          child.on "exit", (code) ->
-            done()
 
     it "should match the corresponding out[put] data", ->
       assert.deepEqual output, expect,

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


describe "ephemeris", ->

  describe "with an empty input, and convenient option", ->
    output = {}
    before (done) ->
      ephemerisData done, {}, convenient: true, (data) ->
        output = json.parse data.toString()

    it "should produce some results", ->
      output.should.have.keys '1'
