Open dcecile opened 2 months ago
import * as contrast from '@/index.ts'
import * as compute from '@intertwine/lib-compute'
export const url = import.meta.url
export const tests = {
['base'](ctx: contrast.Context): void {
contrast.compile(ctx, [
contrast.background.color(contrast.rgb(255, 0, 0)),
])
},
['one in compute'](ctx: contrast.Context): void {
contrast.compile(ctx, [
compute.pure(contrast.background.color(contrast.rgb(255, 0, 0))),
])
},
['array in compute'](ctx: contrast.Context): void {
contrast.compile(ctx, [
compute.pure([contrast.background.color(contrast.rgb(255, 0, 0))]),
])
},
['compute style in compute'](ctx: contrast.Context): void {
contrast.compile(ctx, [
// @ts-expect-error -- invalid nesting
compute.pure([
compute.pure(contrast.background.color(contrast.rgb(255, 0, 0))),
]),
])
},
}
Goals
Unlocks
Tasks