UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

18 lines (16 loc) 675 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const manipulation_1 = require("./../../manipulation"); describe("getEndIndexFromArray", () => { it("should return 0 when undefined", () => { chai_1.expect(manipulation_1.getEndIndexFromArray(undefined)).to.equal(0); }); it("should get the length when empty", () => { chai_1.expect(manipulation_1.getEndIndexFromArray([])).to.equal(0); }); it("should get the length when not empty", () => { chai_1.expect(manipulation_1.getEndIndexFromArray([1])).to.equal(1); }); }); //# sourceMappingURL=getEndIndexFromArray.js.map