Spec cleanup.
This commit is contained in:
parent
fcfe23d516
commit
99bcfdcd0d
@ -6,14 +6,13 @@ describe("jasmine.Env", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('ids', function () {
|
describe('ids', function () {
|
||||||
|
|
||||||
it('nextSpecId should return consecutive integers, starting at 0', function () {
|
it('nextSpecId should return consecutive integers, starting at 0', function () {
|
||||||
expect(env.nextSpecId()).toEqual(0);
|
expect(env.nextSpecId()).toEqual(0);
|
||||||
expect(env.nextSpecId()).toEqual(1);
|
expect(env.nextSpecId()).toEqual(1);
|
||||||
expect(env.nextSpecId()).toEqual(2);
|
expect(env.nextSpecId()).toEqual(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("reporting", function() {
|
describe("reporting", function() {
|
||||||
var fakeReporter;
|
var fakeReporter;
|
||||||
|
|
||||||
@ -42,7 +41,6 @@ describe("jasmine.Env", function() {
|
|||||||
exception = e;
|
exception = e;
|
||||||
}
|
}
|
||||||
expect(exception.message).toEqual('Version not set');
|
expect(exception.message).toEqual('Version not set');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("version should return the current version as an int", function() {
|
it("version should return the current version as an int", function() {
|
||||||
@ -58,7 +56,6 @@ describe("jasmine.Env", function() {
|
|||||||
"build": 7,
|
"build": 7,
|
||||||
"revision": 8
|
"revision": 8
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -217,8 +217,6 @@ describe('RunnerTest', function() {
|
|||||||
expect(fakeReporter.reportRunnerResults).wasCalled();
|
expect(fakeReporter.reportRunnerResults).wasCalled();
|
||||||
expect(fakeReporter.reportRunnerResults.mostRecentCall.args[0].results()).toEqual(env.currentRunner().results());
|
expect(fakeReporter.reportRunnerResults.mostRecentCall.args[0].results()).toEqual(env.currentRunner().results());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should report when the tests start running", function() {
|
it("should report when the tests start running", function() {
|
||||||
@ -235,7 +233,6 @@ describe('RunnerTest', function() {
|
|||||||
var reportedRunner = fakeReporter.reportRunnerStarting.mostRecentCall.args[0];
|
var reportedRunner = fakeReporter.reportRunnerStarting.mostRecentCall.args[0];
|
||||||
expect(reportedRunner.arbitraryVariable).toEqual('foo');
|
expect(reportedRunner.arbitraryVariable).toEqual('foo');
|
||||||
expect(runner.queue.start).wasCalled();
|
expect(runner.queue.start).wasCalled();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return a flat array of all suites, including nested suites", function() {
|
it("should return a flat array of all suites, including nested suites", function() {
|
||||||
@ -245,8 +242,6 @@ describe('RunnerTest', function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
document.runner = env.currentRunner();
|
|
||||||
|
|
||||||
var suites = env.currentRunner().suites();
|
var suites = env.currentRunner().suites();
|
||||||
var suiteDescriptions = [];
|
var suiteDescriptions = [];
|
||||||
for (var i = 0; i < suites.length; i++) {
|
for (var i = 0; i < suites.length; i++) {
|
||||||
@ -254,5 +249,4 @@ describe('RunnerTest', function() {
|
|||||||
}
|
}
|
||||||
expect(suiteDescriptions).toEqual([suite1.getFullName(), suite2.getFullName()]);
|
expect(suiteDescriptions).toEqual([suite1.getFullName(), suite2.getFullName()]);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user