Skip to content

Commit

Permalink
test: update modular test as well
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Nov 19, 2024
1 parent 6213a38 commit ffd168f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/crashlytics/e2e/crashlytics.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,13 @@ describe('crashlytics()', function () {
let logged = false;
// eslint-disable-next-line no-console
console.warn = msg => {
msg.should.containEql('expects an instance of Error');
logged = true;
// eslint-disable-next-line no-console
console.warn = orig;
// we console.warn for deprecated API, can be removed when we move to v9
if (!msg.includes('v8 method is deprecated')) {
msg.should.containEql('expects an instance of Error');
logged = true;
// eslint-disable-next-line no-console
console.warn = orig;
}
};

recordError(getCrashlytics(), 1337);
Expand Down

0 comments on commit ffd168f

Please sign in to comment.