Skip to content

Commit

Permalink
test: suppress PushPermissionNotGrantedError
Browse files Browse the repository at this point in the history
  • Loading branch information
sherwinski committed Nov 14, 2024
1 parent fba3013 commit ffad6d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __test__/unit/push/registerForPush.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { TestEnvironment } from '../../support/environment/TestEnvironment';
import InitHelper from '../../../src/shared/helpers/InitHelper';
import OneSignalEvent from '../../../src/shared/services/OneSignalEvent';
import Log from '../../../src/shared/libraries/Log';
import BrowserUserAgent from '../../support/models/BrowserUserAgent';

//stub dismisshelper
Expand All @@ -9,6 +10,7 @@ jest.mock('../../../src/shared/helpers/DismissHelper');
describe('Register for push', () => {
beforeEach(async () => {
jest.useFakeTimers();
jest.spyOn(Log, 'error').mockImplementation(() => {})
await TestEnvironment.initialize({
addPrompts: true,
userAgent: BrowserUserAgent.Default,
Expand Down

0 comments on commit ffad6d6

Please sign in to comment.