X-Git-Url: https://git.ladys.computer/Etiquette/blobdiff_plain/771a1ca8d8302b01060db00de7f588093e8805ec..e20983aca1b36dd368d52e02ee018c2eaf0ca55f:/model.test.js diff --git a/model.test.js b/model.test.js index 3e9982a..74f73da 100644 --- a/model.test.js +++ b/model.test.js @@ -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); }); });