Files
accounted/app/api/sandbox/seed/__tests__/customers.test.ts
T
Mattsson e11f70b347 Bug/gh issues fiz (#1103)
* refactor: optimize page loading and data fetching

* fix: resolve recurring production runtime errors

* feat: add MCP company and customer updates

* fix: handle year-end tax adjustments

* feat: harden annual report compliance

* fix: expand invoice logo and font support

* fix: sanitize API route error responses

* fix: sanitize user-facing error messages

* feat: persist onboarding and tax assessment notices

* fix: reduce cloud backup audit churn

* feat: refine invoice editor layout

* fix: show saved tax adjustments in INK2

* fix: complete annual report API mappings

* docs: record operational safeguards and decisions

* fix: harden annual report review findings

* fix: adjust column span for description based on VAT registration

* New css class name
2026-07-21 23:00:15 +02:00

18 lines
624 B
TypeScript

import { describe, expect, it } from 'vitest'
import { buildSandboxCustomers } from '../customers'
describe('sandbox customer seed data', () => {
it('sets the required VAT-validation state for every customer', () => {
const customers = buildSandboxCustomers('user-1', 'company-1')
expect(customers).toHaveLength(3)
expect(customers.every((customer) => typeof customer.vat_number_validated === 'boolean')).toBe(
true,
)
expect(customers.find((customer) => customer.customer_type === 'individual')).toMatchObject({
name: 'Anna Lindström',
vat_number_validated: false,
})
})
})