openpencil/tests/engine/figma/api/expanded.test.ts
Danila Poyarkov 9ebc61d78f test(figma): split API coverage
- Move FigmaAPI tests into focused files by feature area
- Share API construction from figma/api/helpers.ts
- Remove FigmaAPI coverage from max-lines exceptions
2026-05-06 13:37:15 +03:00

19 lines
431 B
TypeScript

import { describe, expect, test } from 'bun:test'
import { createAPI } from './helpers'
describe('expanded', () => {
test('defaults to true', () => {
const api = createAPI()
const frame = api.createFrame()
expect(frame.expanded).toBe(true)
})
test('can collapse', () => {
const api = createAPI()
const frame = api.createFrame()
frame.expanded = false
expect(frame.expanded).toBe(false)
})
})