Top level suite no longer reports suiteStart and suiteDone

- jasmineStart and jasmineDone are reported separately

Fixes #716
This commit is contained in:
slackersoft
2014-11-28 21:25:45 -08:00
parent 55f32e2dc6
commit 9f94e8e226
3 changed files with 3 additions and 30 deletions

View File

@@ -100,21 +100,6 @@ describe("Env integration", function() {
env.execute();
});
it('Tells the reporter when the top-level suite has started and finished', function(done) {
var env = new j$.Env(),
reporter = jasmine.createSpyObj('reporter', ['suiteStarted', 'suiteDone', 'jasmineDone']);
reporter.jasmineDone.and.callFake(function() {
expect(reporter.suiteStarted).toHaveBeenCalled();
expect(reporter.suiteDone).toHaveBeenCalled();
done();
});
env.addReporter(reporter);
env.execute();
});
it("Multiple top-level Suites execute as expected", function(done) {
var env = new j$.Env(),
calls = [];
@@ -1105,7 +1090,7 @@ describe("Env integration", function() {
});
expect(reporter.specDone.calls.count()).toBe(5);
var suiteResult = reporter.suiteStarted.calls.argsFor(1)[0];
var suiteResult = reporter.suiteStarted.calls.argsFor(0)[0];
expect(suiteResult.description).toEqual("A Suite");
done();