UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

16 lines (14 loc) 533 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const utils_1 = require("./../../utils"); // todo: more tests describe("KeyValueCache", () => { describe("replaceKey", () => { it("should throw when replacing a key that doesn't exist", () => { const cache = new utils_1.KeyValueCache(); chai_1.expect(() => cache.replaceKey(1, 1)).to.throw(Error, "Key not found."); }); }); }); //# sourceMappingURL=keyValueCacheTests.js.map