From 3bf8311ee4a864112e4cc1537db64c9a880dcda1 Mon Sep 17 00:00:00 2001 From: Ahmet Bora <3393422+afbora@users.noreply.github.com> Date: Sun, 18 Oct 2026 00:23:25 +0300 Subject: [PATCH] test: match refusal messages as plain text --- test/commands.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/commands.test.js b/test/commands.test.js index edd86f0..c2154ef 100644 --- a/test/commands.test.js +++ b/test/commands.test.js @@ -66,7 +66,7 @@ describe('lock', () => { const result = await act({ command: 'lock', ...inputs }); assert.equal(result.code, 1); assert.equal(result.requests.length, 0); - assert.match(result.log, new RegExp(`::error::${message.replace(/[.()]/g, '\\$&')}`)); + assert.ok(result.log.includes(`::error::${message}`), result.log); }); }