@kintone/dts-gen
Version:
Types for kintone js api and Types generating tools
25 lines • 673 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const expression_1 = require("./expression");
describe("toTsExpressions", () => {
class TestExpression {
constructor(expression) {
this.expression = expression;
}
tsExpression() {
return this.expression;
}
}
test("join all TsExpression after call tsExpression()", () => {
expect((0, expression_1.toTsExpressions)([
new TestExpression("1"),
new TestExpression("2"),
new TestExpression("3"),
])).toEqual(`
1
2
3
`.trim());
});
});
//# sourceMappingURL=expression.test.js.map