import {Draw} from 'effect-tree'
import {Array, pipe, Record} from 'effect'
// Place all elbows from all themes in a record with theme name
// as key.
const actual: Record<Draw.ThemeName, string> = Draw.mapThemes(
Draw.getGlyph.flipped('elbow')
)
const expected = pipe(
Draw.themeNames,
Array.map(themeName => [
themeName,
Draw.getTheme(themeName).glyphs.elbow,
] as const),
Record.fromEntries
)
expect(actual).toEqual(expected)
Map over all themes to build a record theme
name⇒f(theme).