Deprecated getAllSuites
This commit is contained in:
@@ -49,7 +49,7 @@ describe('Suite', function() {
|
||||
describe('SpecCount', function () {
|
||||
|
||||
it('should keep a count of the number of specs that are run', function() {
|
||||
env.describe('one suite description', function () {
|
||||
var suite = env.describe('one suite description', function () {
|
||||
env.it('should be a test', function() {
|
||||
this.runs(function () {
|
||||
this.expect(true).toEqual(true);
|
||||
@@ -67,12 +67,11 @@ describe('Suite', function() {
|
||||
});
|
||||
});
|
||||
|
||||
var suite = env.currentRunner.suites[0];
|
||||
expect(suite.specCount()).toEqual(3);
|
||||
});
|
||||
|
||||
it('specCount should be correct even with runs/waits blocks', function() {
|
||||
env.describe('one suite description', function () {
|
||||
var suite = env.describe('one suite description', function () {
|
||||
env.it('should be a test', function() {
|
||||
this.runs(function () {
|
||||
this.expect(true).toEqual(true);
|
||||
@@ -94,7 +93,6 @@ describe('Suite', function() {
|
||||
});
|
||||
});
|
||||
|
||||
var suite = env.currentRunner.suites[0];
|
||||
expect(suite.specCount()).toEqual(3);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user