Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

476 B
Raw Blame
import { expect, test } from 'vitest'
import { permissionText } from './notificationPermission.ts'

test('the permission text says what the permission is for, and how to undo a block', () => {
  expect(permissionText('default')).toMatch(/asks once/)
  expect(permissionText('denied')).toMatch(/site settings, then reload/)
  expect(permissionText('granted')).toBe('This browser may show notifications.')
  expect(permissionText('ios-needs-install')).toMatch(/Home Screen/)
})