mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 13:10:29 +00:00
test(assistant): shared card tests, wiki rows and ratchets after the card packages
This commit is contained in:
@@ -71,8 +71,8 @@ describe('assistantMessages: cards in an answer', () => {
|
||||
expect(messages[0]?.parts.map((p) => p.type)).toEqual(['data-trek-weather']);
|
||||
});
|
||||
|
||||
const ROUTE: TrekCard = { kind: 'tourRoute' };
|
||||
const LIST: TrekCard = { kind: 'tourList' };
|
||||
const ROUTE = { kind: 'tourRoute' } as TrekCard;
|
||||
const LIST = { kind: 'tourList' } as TrekCard;
|
||||
const cardsOf = (message: AssistantMessage | undefined) =>
|
||||
message?.parts.flatMap((p) => (p.type === 'data-trek-card' ? [p.data] : [])) ?? [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user