From 909a5e7e3fe317b1c178157d4539d563e972d13b Mon Sep 17 00:00:00 2001 From: pcriadoperez Date: Tue, 10 Dec 2024 23:35:24 -0600 Subject: [PATCH] chore: add replaceAll test for go --- tests/goTranspiler.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/goTranspiler.test.ts b/tests/goTranspiler.test.ts index cae1fc74..bd61e58d 100644 --- a/tests/goTranspiler.test.ts +++ b/tests/goTranspiler.test.ts @@ -148,4 +148,10 @@ describe('go transpiling tests', () => { const output = transpiler.transpileGo(ts).content; expect(output).toBe(result); }); + test('should convert replaceAll', () => { + const ts = "y.replaceAll(z, a)"; + const result = "Replace(y, z, a)"; + const output = transpiler.transpileGo(ts).content; + expect(output).toBe(result); + }); });