var assert = require('assert'),
    colors = require('colors'),
    sinon = require('sinon');

sinon.spy(console, 'log');

(function referenceError() {
  process.argv[2] = __dirname + '/markdown/reference.md';
  require('../bin/literate-jasmine');

  setTimeout(function() {
    assert(console.log.calledWith('ReferenceError: zz is not defined'.red, 'thrown from', 'c'.red + ':'));
    assert(console.log.calledWith('c = 2 * zz;'.red));
  }, 250);
})();

var assert = require('assert'),
    colors = require('colors'),
    sinon = require('sinon');

sinon.spy(console, 'log');

(function referenceError() {
  process.argv[2] = __dirname + '/markdown/reference.md';
  require('../bin/literate-jasmine');

  setTimeout(function() {
    assert(console.log.calledWith('ReferenceError: zz is not defined'.red, 'thrown from', 'c'.red + ':'));
    assert(console.log.calledWith('c = 2 * zz;'.red));
  }, 1000);
})();

Bump up integration test time