Skip to content

Commit bd5e17f

Browse files
committed
test(utm): expect encoded parentheses in utm_content
1 parent 9599836 commit bd5e17f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/utm.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ describe("UTM Builder Functions", () => {
136136
"usd",
137137
);
138138

139-
expect(url).toContain("utm_content=de-surinaamsche-bank-(dsb)-usd-en");
139+
// URL encodes parentheses as %28 and %29
140+
expect(url).toContain(
141+
"utm_content=de-surinaamsche-bank-%28dsb%29-usd-en",
142+
);
140143
});
141144

142145
it("should preserve existing query params in bank URL", () => {

0 commit comments

Comments
 (0)