Rewrite an incorrect suite spec

This commit is contained in:
Greg Cobb and Tim Jarratt
2014-08-27 12:27:11 -07:00
parent f8bccabf03
commit 35f52bcb24

View File

@@ -193,14 +193,12 @@ describe("Suite", function() {
queueRunner: fakeQueueRunnerForChild,
parentSuite: parentSuite
}),
spec1 = new j$.Spec({expectationFactory: function() {}, queueableFn: {}}),
spec2 = new j$.Spec({expectationFactory: function() {}, queueableFn: {}}),
beforeAllFn = jasmine.createSpy('beforeAll'),
afterAllFn = jasmine.createSpy('afterAll');
parentSuite.addChild(childSuite);
parentSuite.addChild(spec1);
childSuite.addChild(spec1);
parentSuite.beforeAll(beforeAllFn);
parentSuite.afterAll(afterAllFn);
parentSuite.execute();
expect(fakeQueueRunnerForParent).toHaveBeenCalledWith(jasmine.objectContaining({queueableFns: []}));