You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it("returns false for normal user-facing text",()=>{
50
+
expect(isInternalFormattingArtifact("Hello! How can I help?")).toBe(false);
51
+
expect(isInternalFormattingArtifact("The answer is 42.")).toBe(false);
52
+
expect(isInternalFormattingArtifact("Here's your code:")).toBe(false);
53
+
});
54
+
55
+
it("returns false for text that merely contains an artifact pattern",()=>{
56
+
// Real answer text that happens to include a dash separator or tag-like content
57
+
// must not be suppressed.
58
+
expect(
59
+
isInternalFormattingArtifact(
60
+
"Here are the options:\n───\n1. Option A\n2. Option B",
61
+
),
62
+
).toBe(false);
63
+
expect(isInternalFormattingArtifact("See <https://example.com> for details.")).toBe(false);
64
+
expect(
65
+
isInternalFormattingArtifact("Use <channel|> syntax in your config."),
66
+
).toBe(false);
67
+
});
68
+
69
+
it("returns false for code blocks and markdown with substance",()=>{
0 commit comments