import { describe, expect, it } from 'vitest' import { parseBranches, parsePriceOptions } from '../electron/main/reservation' describe('reservation response parsers', () => { it('returns only public room branch fields', () => { const html = `` expect(parseBranches(html)).toEqual([ { num: 22, name: 'STATION', phone: '010-4445-6082' }, ]) }) it('parses server-calculated per-person prices', () => { const html = `` expect(parsePriceOptions(html)).toEqual([ { person: 2, totalPrice: 60_000 }, { person: 4, totalPrice: 120_000 }, ]) }) })