Resolve the promise returned by Env#execute to the overall status

This commit is contained in:
Steve Gravrock
2021-11-30 20:05:23 -08:00
parent 42e6c45efa
commit d739c23401
5 changed files with 45 additions and 78 deletions

View File

@@ -3229,14 +3229,14 @@ describe('Env integration', function() {
});
});
it('is resolved even if specs fail', function() {
it('is resolved to the overall status', function() {
env.describe('suite', function() {
env.it('spec', function() {
env.expect(true).toBe(false);
});
});
return expectAsync(env.execute(null)).toBeResolved();
return expectAsync(env.execute(null)).toBeResolvedTo('failed');
});
});