Deprecate non-Error arguments passed to done()

[Finishes #178267600]
This commit is contained in:
Steve Gravrock
2021-07-24 09:18:24 -07:00
parent 10601f5af6
commit 70d49e5b57
7 changed files with 147 additions and 36 deletions

View File

@@ -161,7 +161,12 @@ describe('Custom Async Matchers (Integration)', function() {
};
spyOn(env, 'deprecated');
env.addReporter({ specDone: specExpectations, jasmineDone: done });
env.addReporter({
specDone: specExpectations,
jasmineDone: function() {
done();
}
});
env.execute();
});
});

View File

@@ -313,7 +313,12 @@ describe('Custom Matchers (Integration)', function() {
);
};
env.addReporter({ specDone: specExpectations, jasmineDone: done });
env.addReporter({
specDone: specExpectations,
jasmineDone: function() {
done();
}
});
env.execute();
});
});