mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +00:00
style: format the Japanese and Korean app strings and two tests as Prettier wants them
This commit is contained in:
@@ -52,7 +52,11 @@ describe('pagesFor', () => {
|
||||
|
||||
it('keeps the same pages whichever day is selected, so a run of swipes never meets an end', () => {
|
||||
expect(pagesFor(DAYS, 1).map((p) => p.key)).toEqual(pagesFor(DAYS, 6).map((p) => p.key));
|
||||
expect(pagesFor(DAYS, 6).filter((p) => p.near).map((p) => p.dayId)).toEqual([4, 5, 6]);
|
||||
expect(
|
||||
pagesFor(DAYS, 6)
|
||||
.filter((p) => p.near)
|
||||
.map((p) => p.dayId)
|
||||
).toEqual([4, 5, 6]);
|
||||
});
|
||||
|
||||
it('keeps a page for a selection that points at no day, with the first day as the way back', () => {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user