 Tinytest.add 'test with browserify error', (test) ->
 
   clearPreviousResults()
-  
+
   # cause it to use the on error callback
   Result.errorWanted = true
 

clearPreviousResults = -> delete Result[key] for key of Result

# test the usual successful run
Tinytest.add 'test processFile', (test) ->

  test.equal Result.browserify.array?, true, 'must have an array to browserify'
  test.equal Result.browserify.array?.length, 1, 'browserify gets [readable], length should be 1'
  test.equal Result.browserify.array[0]?.isTestPassThrough, true, 'should receive our test PassThrough'
  test.equal Result.browserify?.options, defaultOptions()

  # test transform (only envify)
  test.equal Result?.envify?.options?, true, 'envify should be called with options'
