Resolve the execute() promise to the entire JasmineDoneInfo

This matches jasmine-npm.
This commit is contained in:
Steve Gravrock
2021-12-09 18:18:36 -08:00
parent b37d989f13
commit f1cf6ee419
5 changed files with 47 additions and 44 deletions

View File

@@ -29,8 +29,8 @@ describe('Default Spy Strategy (Integration)', function() {
expect(spy()).toBeUndefined();
});
const overallStatus = await env.execute();
expect(overallStatus).toEqual('passed');
const result = await env.execute();
expect(result.overallStatus).toEqual('passed');
});
it('uses the default spy strategy defined when the spy is created', async function() {
@@ -60,7 +60,7 @@ describe('Default Spy Strategy (Integration)', function() {
expect(d.and.isConfigured()).toBe(false);
});
const overallStatus = await env.execute();
expect(overallStatus).toEqual('passed');
const result = await env.execute();
expect(result.overallStatus).toEqual('passed');
});
});