diff --git a/src/auto-reply/reply.directive.parse.test.ts b/src/auto-reply/reply.directive.parse.test.ts index 91b321a99..e3a2fecfb 100644 --- a/src/auto-reply/reply.directive.parse.test.ts +++ b/src/auto-reply/reply.directive.parse.test.ts @@ -132,6 +132,12 @@ describe("directive parsing", () => { expect(res.cleaned).toBe("thats not /tmp/hello"); }); + it("preserves spacing when stripping reasoning directives before paths", () => { + const res = extractReasoningDirective("thats not /reasoning on/tmp/hello"); + expect(res.hasDirective).toBe(true); + expect(res.cleaned).toBe("thats not /tmp/hello"); + }); + it("preserves spacing when stripping status directives before paths", () => { const res = extractStatusDirective("thats not /status:/tmp/hello"); expect(res.hasDirective).toBe(true);