UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

21 lines (18 loc) 523 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const testHelpers_1 = require("./../compiler/testHelpers"); const code = ` export class Class { prop = ""; constructor(param: Class) { } } `; describe("tests for issue #53", () => { const { firstChild } = testHelpers_1.getInfoFromText(code); it("should set the type", () => { const prop = firstChild.getInstanceProperty("prop"); prop.setType("string"); }); }); //# sourceMappingURL=53tests.js.map