From 77a67f4fb1d29c554dae7cc05f1e28cb3405c6f2 Mon Sep 17 00:00:00 2001 From: Dimitris Marlagkoutsos Date: Fri, 13 Sep 2024 12:53:26 +0100 Subject: [PATCH] test dismissing --- packages/cli/test/demo/mailboxes-are-symmetric.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/cli/test/demo/mailboxes-are-symmetric.js b/packages/cli/test/demo/mailboxes-are-symmetric.js index 40e76b8ab2..5bfa044194 100644 --- a/packages/cli/test/demo/mailboxes-are-symmetric.js +++ b/packages/cli/test/demo/mailboxes-are-symmetric.js @@ -7,6 +7,11 @@ export const section = async (execa, testLine) => { execa`endo send HOST --as alice-agent ${'This is the @doubler you sent me.'}`, ); await testLine(execa`endo inbox`, { - stdout: /"alice" sent "This is the @doubler you sent me\."/, + stdout: /3\. "alice" sent "This is the @doubler you sent me\."/, + }); + await testLine(execa`endo adopt 3 doubler doubler-from-alice`); + await testLine(execa`endo dismiss 3`); + await testLine(execa`endo inbox`, { + stdout: /^(?!3\. "alice" sent "This is the @doubler you sent me\.").*/, }); };