openpencil/tests/engine/io/fig/import/masks.test.ts
Danila Poyarkov 2bd2304bcb refactor(fig): own instance interpretation
- Move component properties, symbol overrides, derived symbol data, and clone synchronization into @open-pencil/fig\n- Add the public instance-overrides subpath with package tests and packed smoke coverage\n- Remove cross-package forwarding modules and enforce direct owner imports in architecture checks
2026-07-18 02:06:34 +03:00

23 lines
584 B
TypeScript

import { describe, expect, test } from 'bun:test'
import { nodeChangeToProps } from '@open-pencil/fig/node-change'
import type { NodeChange } from '@open-pencil/kiwi/fig/codec'
describe('Figma mask import', () => {
test('imports schema mask fields', () => {
const props = nodeChangeToProps(
{
type: 'RECTANGLE',
mask: true,
maskType: 'LUMINANCE',
maskIsOutline: true
} as NodeChange,
[]
)
expect(props.isMask).toBe(true)
expect(props.maskType).toBe('LUMINANCE')
expect(props.maskIsOutline).toBe(true)
})
})