Breaking change: Env#execute no longer takes a callback

Use the returned promise instead.
This commit is contained in:
Steve Gravrock
2022-08-21 16:35:12 -07:00
parent 4fcdbd39fb
commit 0bfbda720d
3 changed files with 8 additions and 46 deletions

View File

@@ -3670,16 +3670,6 @@ describe('Env integration', function() {
expect(failedExpectations).toEqual([]);
});
it('calls the optional done callback when finished', function(done) {
const reporter = jasmine.createSpyObj('reporter', ['jasmineDone']);
env.addReporter(reporter);
env.execute(null, function() {
expect(reporter.jasmineDone).toHaveBeenCalled();
done();
});
});
describe('#spyOnGlobalErrorsAsync', function() {
const leftInstalledMessage =
'Global error spy was not uninstalled. ' +