memory-card
Version:
ES6 Map like Async API, with Swagger API Backend Support.
16 lines • 676 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tstest_1 = require("tstest");
const memory_card_js_1 = require("../src/memory-card.js");
(0, tstest_1.test)('integrate testing', async (t) => {
const card = new memory_card_js_1.MemoryCard();
await card.load();
t.equal(await card.size, 0, 'init with 0');
await card.set('a', 'b');
t.equal(await card.size, 1, 'size with 1');
t.equal(await card.get('a'), 'b', 'get key a with value b');
await card.clear();
t.equal(await card.size, 0, 'clear reset to 0');
});
//# sourceMappingURL=memory-card.spec.js.map