Fixes https://github.com/pivotal/jasmine-gem/issues/65 and https://www.pivotaltracker.com/story/show/24902023
This commit is contained in:
@@ -44,6 +44,21 @@ describe("HtmlReporter", function() {
|
|||||||
expect(htmlReporter.specFilter(fakeSpec("not run this"))).toBeFalsy();
|
expect(htmlReporter.specFilter(fakeSpec("not run this"))).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe("running without any specs", function() {
|
||||||
|
var runner;
|
||||||
|
beforeEach(function() {
|
||||||
|
runner = env.currentRunner();
|
||||||
|
env.addReporter(htmlReporter);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("should not error", function() {
|
||||||
|
var exec = function() {
|
||||||
|
runner.execute();
|
||||||
|
};
|
||||||
|
expect(exec).not.toThrow();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('Matcher reporting', function() {
|
describe('Matcher reporting', function() {
|
||||||
var getResultMessageDiv = function(body) {
|
var getResultMessageDiv = function(body) {
|
||||||
var divs = body.getElementsByTagName("div");
|
var divs = body.getElementsByTagName("div");
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ jasmine.HtmlReporter = function(_doc) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
self.reportRunnerResults = function(runner) {
|
self.reportRunnerResults = function(runner) {
|
||||||
reporterView.complete();
|
reporterView && reporterView.complete();
|
||||||
};
|
};
|
||||||
|
|
||||||
self.reportSuiteResults = function(suite) {
|
self.reportSuiteResults = function(suite) {
|
||||||
|
|||||||
Reference in New Issue
Block a user