import { describe, expect, it } from 'vitest' import { getTargets, parseHexchess } from '@bedard/hexchess' describe('targets', () => { it('targets', () => { const hexchess = parseHexchess('b/qbk/n1b1n/r5r/ppppppppp/11/5P5/4P1P4/3P1B1P3/2P2B2P2/1PRNQBKNRP1 w - 0 1') const result = getTargets(hexchess!, 'g4') expect(result).toEqual([ { from: 'g4', promotion: null, to: 'g5' }, { from: 'g4', promotion: null, to: 'g6' } ]) }) })