Skip to content

Commit

Permalink
build: try to catch bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jul 7, 2022
1 parent 28cc9a8 commit c1fc5fa
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package chapi.ast.typescriptast

import org.junit.jupiter.api.Test

class TypeScriptBugTest {

@Test
internal fun backend_arrow_function() {
val code = """
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.test = void 0;
function test() {
alert("test");
}
exports.test = test;
"""

TypeScriptAnalyser().analysis(code, "index.tsx")
}
}

0 comments on commit c1fc5fa

Please sign in to comment.