}
describe("Storage", () => {
+ it("[[Call]] throws", () => {
+ assertThrows(() => {
+ Storage();
+ });
+ });
+
it("[[Construct]] creates a new Storage", () => {
assertStrictEquals(
Object.getPrototypeOf(new 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);
});
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);
});