]> Lady’s Gitweb - Etiquette/blobdiff - memory.test.js
Add methods to get the system of a Tag
[Etiquette] / memory.test.js
index 8187635a7cee18320258727de6b027b4674da56b..b9217a6872ca81d5d7775edc6736ae9b8b5b6179 100644 (file)
@@ -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);
     });
This page took 0.020586 seconds and 4 git commands to generate.