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.

716 B
Raw Blame
import { expect, test, vi } from 'vitest'

vi.mock('../team/TeamPage.tsx', () => ({ TeamSection: () => null }))
const { shownSectionIds } = await import('./WorkspaceSettings.tsx')

test('Recordings and Export calls are lines of General (LIN-837); API keys moved to Integrations', () => {
  expect(shownSectionIds(true)).toEqual(['general', 'team', 'phone', 'danger'])
  expect(shownSectionIds(false)).toEqual(['general', 'team', 'phone', 'danger'])
})

test('Billing only on a billed workspace, for the person who manages it (Linedesk Cloud)', () => {
  expect(shownSectionIds(true, true)).toEqual(['general', 'team', 'phone', 'billing', 'danger'])
  expect(shownSectionIds(true, false)).not.toContain('billing')
})