]> Lady’s Gitweb - Etiquette/blobdiff - memory.test.js
Apply some reformatting and make Reuse‐compliant
[Etiquette] / memory.test.js
index 8187635a7cee18320258727de6b027b4674da56b..397a4c4db6e985b5f16b278b48530bae5fde079b 100644 (file)
@@ -1,11 +1,14 @@
-// 📧🏷️ Étiquette ∷ memory.test.js
-// ====================================================================
-//
-// Copyright © 2023 Lady [@ Lady’s Computer].
-//
-// This Source Code Form is subject to the terms of the Mozilla Public
-// License, v. 2.0. If a copy of the MPL was not distributed with this
-// file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
+// SPDX-FileCopyrightText: 2023, 2025 Lady <https://www.ladys.computer/about/#lady>
+// SPDX-License-Identifier: MPL-2.0
+/**
+ * ⁌ 📧🏷️ Étiquette ∷ memory.test.js
+ *
+ * Copyright © 2023, 2025 Lady [@ Ladys Computer].
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
+ */
 
 import {
   assert,
@@ -40,6 +43,12 @@ class Storable {
 }
 
 describe("Storage", () => {
+  it("[[Call]] throws", () => {
+    assertThrows(() => {
+      Storage();
+    });
+  });
+
   it("[[Construct]] creates a new Storage", () => {
     assertStrictEquals(
       Object.getPrototypeOf(new Storage()),
@@ -155,7 +164,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 +200,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.365174 seconds and 4 git commands to generate.