The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
test(assistant): a changed journal entry can be undone
Maurice53bd21a7d7be
diff --git a/server/tests/unit/nest/assistant/cards/journey/journey-cards.test.ts b/server/tests/unit/nest/assistant/cards/journey/journey-cards.test.tsindex b3a577568..da436991e 100644--- a/server/tests/unit/nest/assistant/cards/journey/journey-cards.test.ts+++ b/server/tests/unit/nest/assistant/cards/journey/journey-cards.test.ts@@ -307,7 +307,8 @@ describe('the change cards', () => {const loaded: JournalLoaded = { entry: entry(), journeyId: 3, title: 'B', tripJournal: false };const updated = describeToolCall('update_journey_entry', 'c3', { entryId: 12, entry_time: '18:00' }, ctx, loaded);- expect(updated).toMatchObject({ verbKey: 'updateJournalEntry', subject: 'Sunset at the Spree', undoable: false });+ // A changed entry has its way back: the tool answers what the change replaced.+ expect(updated).toMatchObject({ verbKey: 'updateJournalEntry', subject: 'Sunset at the Spree', undoable: true });expect(updated.rows).toEqual([{ op: 'change', labelKey: 'time', before: '14:30', after: '18:00' }]);expect(describeToolCall('update_journey_entry', 'c4', {}, ctx).rows).toEqual([]);