]> Lady’s Gitweb - Etiquette/blobdiff - model.test.js
Allow “silent” persisting of tags
[Etiquette] / model.test.js
index 7944238493a1e5c4da4c398252171b6487737c17..a648d4f736b8e6fb44dcb06c681c6bf739615a59 100644 (file)
@@ -849,6 +849,15 @@ describe("TagSystem", () => {
         const activity = tag.persist();
         assertStrictEquals(activity, null);
       });
         const activity = tag.persist();
         assertStrictEquals(activity, null);
       });
+
+      it("[[Call]] returns undefined for a silent persist", () => {
+        const broader = new Tag();
+        broader.persist();
+        const tag = new Tag();
+        tag.prefLabel = "etaoin";
+        tag.addBroaderTag(broader);
+        assertStrictEquals(tag.persist(true), undefined);
+      });
     });
 
     describe("::prefLabel", () => {
     });
 
     describe("::prefLabel", () => {
This page took 0.02207 seconds and 4 git commands to generate.