wip
This commit is contained in:
@@ -95,7 +95,7 @@ describeMaybe('Real-site hosted session – Race Information step (members.iraci
|
||||
'03-race-information.json',
|
||||
);
|
||||
const raw = await fs.readFile(fixturePath, 'utf8');
|
||||
const items = JSON.parse(raw) as unknown[];
|
||||
const items = JSON.parse(raw) as Array<{ i: string; t: string }>;
|
||||
const sidebarItem =
|
||||
items.find(
|
||||
(i) =>
|
||||
@@ -103,7 +103,7 @@ describeMaybe('Real-site hosted session – Race Information step (members.iraci
|
||||
typeof i.t === 'string',
|
||||
) ?? null;
|
||||
if (sidebarItem) {
|
||||
fixtureSidebarText = sidebarItem.t as string;
|
||||
fixtureSidebarText = sidebarItem.t;
|
||||
}
|
||||
} catch {
|
||||
fixtureSidebarText = null;
|
||||
|
||||
Reference in New Issue
Block a user