style: format the Japanese and Korean app strings and two tests as Prettier wants them

This commit is contained in:
Maurice
2026-11-10 09:43:01 +01:00
parent 0b3d2873c2
commit 57c9c9d5f2
4 changed files with 29 additions and 8 deletions
+14 -2
View File
@@ -212,7 +212,13 @@ describe('the richer snapshot', () => {
});
it('makes a stop of every leg of a flight with a stopover, and keeps a flight in the air ahead until it lands', () => {
const plain = todayOf(trip(1, '2026-11-09', '2026-11-10'), [day(5, 1, '2026-11-09', []), day(6, 2, '2026-11-10', [])], '2026-11-09', () => 'D', (t) => t);
const plain = todayOf(
trip(1, '2026-11-09', '2026-11-10'),
[day(5, 1, '2026-11-09', []), day(6, 2, '2026-11-10', [])],
'2026-11-09',
() => 'D',
(t) => t
);
if (!plain) throw new Error('the trip runs today');
const legs = [
{ from: 'SNA', to: 'ATL', dep_day_id: 5, dep_time: '14:00', arr_day_id: 5, arr_time: '21:11' },
@@ -243,7 +249,13 @@ describe('the richer snapshot', () => {
});
it('counts a booking with an end time as under way until it ends', () => {
const plain = todayOf(trip(1, '2026-11-09', '2026-11-09'), [day(5, 1, '2026-11-09', [])], '2026-11-09', () => 'D', (t) => t);
const plain = todayOf(
trip(1, '2026-11-09', '2026-11-09'),
[day(5, 1, '2026-11-09', [])],
'2026-11-09',
() => 'D',
(t) => t
);
if (!plain) throw new Error('the trip runs today');
const today = withBookings(
plain,