marked/test/specs/specs-spec.js

13 lines
278 B
JavaScript
Raw Normal View History

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