mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 00:20:28 +01:00
This is the proper way to make it filter the spec list: https://github.com/pivotal/jasmine/blob/1_3_x/spec/runner.html I submitted the jasmine-jsreporter change as a pull request here: https://github.com/detro/jasmine-jsreporter/pull/2 Fixes #563.
20 lines
587 B
JavaScript
20 lines
587 B
JavaScript
document.write('<style> @import "../vendor/jasmine/jasmine.css?_=' + (+new Date).toString(36) + '"; </style>');
|
|
|
|
;(function(env){
|
|
var htmlReporter = new jasmine.HtmlReporter();
|
|
env.addReporter(htmlReporter);
|
|
env.specFilter = function(spec) {
|
|
return htmlReporter.specFilter(spec);
|
|
};
|
|
|
|
// Clean up any nodes the previous test might have added.
|
|
env.afterEach(function() {
|
|
harness.removeNextSiblings(document.body);
|
|
harness.removeNextSiblings(document.getElementById("HTMLReporter"));
|
|
});
|
|
|
|
window.onload = function(){
|
|
env.execute();
|
|
}
|
|
})(jasmine.getEnv());
|