openpencil/tests/engine/fig/import/legacy/blend/mode.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

26 lines
742 B
TypeScript

import { describe, expect, test } from 'bun:test'
import { importNodeChanges } from '@open-pencil/core'
import { canvas, doc, node } from '../helpers'
describe('fig-import: blend mode', () => {
test('node blend mode', () => {
const graph = importNodeChanges([
doc(),
canvas(),
node('RECTANGLE', 10, 1, {
blendMode: 'MULTIPLY'
} as Partial<NodeChange>)
])
const n = graph.getChildren(graph.getPages()[0].id)[0]
expect(n.blendMode).toBe('MULTIPLY')
})
test('defaults to PASS_THROUGH', () => {
const graph = importNodeChanges([doc(), canvas(), node('RECTANGLE', 10, 1)])
const n = graph.getChildren(graph.getPages()[0].id)[0]
expect(n.blendMode).toBe('PASS_THROUGH')
})
})