]> Lady’s Gitweb - Etiquette/blobdiff - model.test.js
Use configurable metadata for model
[Etiquette] / model.test.js
index 3e9982a7a4fb513495204b5d80608e4d04f2c6a9..74f73daf349f5c068405994f03729d4e36e5fe57 100644 (file)
@@ -140,6 +140,12 @@ describe("TagSystem", () => {
       });
     });
 
+    describe(".For", () => {
+      it("[[Has]] is not present", () => {
+        assertFalse("For" in Tag);
+      });
+    });
+
     describe(".all", () => {
       it("[[Call]] yields all the persisted tags", () => {
         const tags = new Set(function* () {
@@ -411,8 +417,10 @@ describe("TagSystem", () => {
       });
 
       it("[[Call]] throws when this is not a tag which can be placed in canon", () => {
+        const canon = new Tag("CanonTag");
+        canon.persist();
         assertThrows(() => {
-          new Tag().addInCanonTag();
+          new Tag().addInCanonTag(canon);
         });
       });
 
@@ -469,8 +477,10 @@ describe("TagSystem", () => {
       });
 
       it("[[Call]] throws when this is not a conceptual tag", () => {
+        const involved = new Tag();
+        involved.persist();
         assertThrows(() => {
-          new Tag().addInvolvesTag();
+          new Tag().addInvolvesTag(involved);
         });
       });
 
This page took 0.022995 seconds and 4 git commands to generate.