marked/test/specs/specs-spec.js

13 lines
272 B
JavaScript
Raw Normal View History

2018-03-04 00:51:00 -06:00
var specTests = require('../');
2018-03-04 00:47:02 -06:00
it('should run spec tests', function () {
// hide output
spyOn(console, 'log');
2018-03-04 00:51:00 -06:00
if (!specTests({stop: true})) {
2018-03-04 00:47:02 -06:00
// if tests fail rerun tests and show output
console.log.and.callThrough();
2018-03-04 00:51:00 -06:00
specTests();
2018-03-04 00:47:02 -06:00
fail();
}
});