X-Git-Url: https://git.ladys.computer/Etiquette/blobdiff_plain/ce40db353c27887f4345c88fc70a7251bf688bbb..9f6c704b8d1ebe70e97b0d934d04c71e8ae0ed5f:/memory.test.js diff --git a/memory.test.js b/memory.test.js index 8187635..b9217a6 100644 --- a/memory.test.js +++ b/memory.test.js @@ -40,6 +40,12 @@ class Storable { } describe("Storage", () => { + it("[[Call]] throws", () => { + assertThrows(() => { + Storage(); + }); + }); + it("[[Construct]] creates a new Storage", () => { assertStrictEquals( Object.getPrototypeOf(new Storage()), @@ -155,7 +161,7 @@ describe("Storage", () => { assertStrictEquals(instance.has("000-0000"), false); instance.set("000-0000", new Storable()); assertStrictEquals(instance.has("000-0000"), true); - instance.delete("000-0000") + instance.delete("000-0000"); assertStrictEquals(instance.has("000-0000"), false); }); @@ -191,7 +197,7 @@ describe("Storage", () => { const data = { my: "data" }; const storable = new Storable(data); instance.set(newID, storable); - data.my = "new data" + data.my = "new data"; instance.set(newID, storable); assertEquals(instance.get(newID).data, data); });