From 937c9a0bd89fad9aa7a7ea3815cac8f0aade7a84 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 05:50:34 +0000 Subject: [PATCH 1/2] Initial plan From 15d370231e46c1d5d942502fcee249a065973473 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 05:51:38 +0000 Subject: [PATCH 2/2] Replace local strRepeat helper with import from src/string/repeat Co-authored-by: nev21 <82737406+nev21@users.noreply.github.com> --- lib/test/src/common/helpers/encode.test.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/test/src/common/helpers/encode.test.ts b/lib/test/src/common/helpers/encode.test.ts index 54a5fc4..4977e37 100644 --- a/lib/test/src/common/helpers/encode.test.ts +++ b/lib/test/src/common/helpers/encode.test.ts @@ -13,6 +13,7 @@ import { _decodeBase64Polyfill } from "../../../../src/helpers/encode"; import { arrContains } from "../../../../src/array/includes"; +import { strRepeat } from "../../../../src/string/repeat"; describe("encodeAsJson helper", () => { it("null/undefined", () => { @@ -402,15 +403,6 @@ describe("Base64 Polyfill Coverage - Iteration & Padding", () => { }); }); -// Helper function -function strRepeat(str: string, count: number): string { - let result = ""; - for (let i = 0; i < count; i++) { - result += str; - } - return result; -} - describe("Base64 Polyfill Verification Against Native Implementation", () => { // Check if native implementations are available let hasNativeBase64 = typeof btoa !== "undefined" && typeof atob !== "undefined";