From 2a730b31adfd72fd8f7e8c3f63c8ea547c43ccfa Mon Sep 17 00:00:00 2001 From: sc0vu Date: Sun, 18 Feb 2024 15:21:11 +0800 Subject: [PATCH 1/2] fix: csharp test --- tests/csharpTranspiler.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/csharpTranspiler.test.ts b/tests/csharpTranspiler.test.ts index d576826..49b3057 100644 --- a/tests/csharpTranspiler.test.ts +++ b/tests/csharpTranspiler.test.ts @@ -441,7 +441,7 @@ describe('csharp transpiling tests', () => { "x[\"teste\"] = 1;"; const csharp = "object x = new Dictionary() {};\n" + - "((Dictionary)x)[\"teste\"] = 1;"; + "((IDictionary)x)[\"teste\"] = 1;"; const output = transpiler.transpileCSharp(ts).content; expect(output).toBe(csharp); }) @@ -453,7 +453,7 @@ describe('csharp transpiling tests', () => { const csharp = "object a = new Dictionary() {};\n" + "object b = getValue(a, \"teste\");\n" + - "((Dictionary)a)[\"b\"] = getValue(a, \"teste\");" + "((IDictionary)a)[\"b\"] = getValue(a, \"teste\");" const output = transpiler.transpileCSharp(ts).content; expect(output).toBe(csharp); }) From 421ade35a048df374b7cb1f8b97be32e8de85f84 Mon Sep 17 00:00:00 2001 From: sc0vu Date: Sun, 18 Feb 2024 15:22:53 +0800 Subject: [PATCH 2/2] feat: update badge of github ci --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a8947b6..5db393b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # AST-Transpiler -[![Build](https://github.com/carlosmiei/ast-transpiler/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/carlosmiei/ast-transpiler/actions/workflows/node.js.yml) +[![Build](https://github.com/ccxt/ast-transpiler/actions/workflows/node.js.yml/badge.svg)](https://github.com/ccxt/ast-transpiler/actions/workflows/node.js.yml) ![Jest coverage](./badges/coverage-jest%20coverage.svg) ![Functions](./badges/coverage-functions.svg) ![Lines](./badges/coverage-lines.svg)