test: expect conversational dave presence
All checks were successful
Codex Template Compliance / template-compliance (pull_request) Successful in 47s
Build / test-and-image (pull_request) Successful in 2m32s

This commit is contained in:
2026-07-11 18:33:07 +02:00
parent 429114f272
commit c4c6063c6e

View File

@@ -49,7 +49,8 @@ test('dynamic presence sends a grounded message and persists a variable next eva
const now = new Date('2026-07-06T12:00:00Z');
const outcome = await presence.tick(now);
assert.deepEqual(outcome, { sent: true, reason: 'sent' });
assert.match(messages[0], /^\[DAVE \/\/ AKTIV\]/);
assert.match(messages[0], /^Die Lage ist ruhig/);
assert.doesNotMatch(messages[0], /\[DAVE \/\/ AKTIV\]/);
assert.match(messages[0], /Belege:/);
assert.match(calls[0].prompt, /dynamic presence evaluation, not a fixed scheduled briefing/i);
assert.equal(calls[0].options.mode, 'presence');