Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xnerhu committed Dec 10, 2023
1 parent 13e558f commit c5c2504
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/sources/notification_permissions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ import getNotificationPermissions from './notification_permissions'
describe('Sources', () => {
describe('notificaionPermissions', () => {
it('returns an expected value or throws', async () => {
const { major } = getBrowserVersion() ?? { major: 0, minor: 0 }
const { major, minor } = getBrowserVersion() ?? { major: 0, minor: 0 }

if (getBrowserKind() === BrowserKind.Safari && getBrowserEngineKind() === BrowserEngineKind.Webkit) {
if (
getBrowserKind() === BrowserKind.Safari &&
getBrowserEngineKind() === BrowserEngineKind.Webkit &&
(isMobile() || major < 16 || (major === 16 && minor < 5))
) {
let expected = ''

if (isMobile()) {
Expand Down

0 comments on commit c5c2504

Please sign in to comment.