Fix JS test cases and other JS build issues caused due to dependabot updates.

This commit is contained in:
Aditya Toshniwal
2023-06-09 18:22:20 +05:30
parent f4ea95da12
commit 745a91393c
9 changed files with 47 additions and 43 deletions

View File

@@ -10,14 +10,16 @@
/* eslint-disable no-console */
beforeAll(function () {
spyOn(console, 'warn').and.callThrough();
// Warnings can be ignored
// spyOn(console, 'warn').and.callThrough();
spyOn(console, 'error').and.callThrough();
jasmine.getEnv().allowRespy(true);
});
afterEach(function (done) {
setTimeout(function () {
expect(console.warn).not.toHaveBeenCalled();
// Warnings can be ignored
// expect(console.warn).not.toHaveBeenCalled();
expect(console.error).not.toHaveBeenCalled();
done();
}, 0);