openpencil/tests/engine/figma/api/corner/radius.test.ts
Danila Poyarkov aad26b535e test: move prefixed splits into domain folders
- Move newly split tests under explicit domain subfolders
- Update nested helper imports after the moves
- Add a lint guard against repeating existing sibling domains as filename prefixes
2026-05-06 14:27:21 +03:00

23 lines
615 B
TypeScript

import { describe, expect, test } from 'bun:test'
import { createAPI } from '../helpers'
describe('corner radius', () => {
test('uniform corner radius', () => {
const api = createAPI()
const rect = api.createRectangle()
rect.cornerRadius = 8
expect(rect.cornerRadius).toBe(8)
expect(rect.topLeftRadius).toBe(8)
expect(rect.bottomRightRadius).toBe(8)
})
test('independent corners return mixed', () => {
const api = createAPI()
const rect = api.createRectangle()
rect.topLeftRadius = 4
rect.bottomRightRadius = 12
expect(rect.cornerRadius).toBe(api.mixed)
})
})