]> Lady’s Gitweb - Etiquette/blobdiff - model.test.js
Add methods to get the system of a Tag
[Etiquette] / model.test.js
index ed1430e8a49246c1a97190eb3e64ca9e443bbad3..4396d37def8892db01a6f32076ca066b31773a21 100644 (file)
@@ -280,6 +280,12 @@ describe("TagSystem", () => {
       });
     });
 
+    describe(".system", () => {
+      it("[[Call]] returns the `TagSystem`", () => {
+        assertEquals(Tag.system, system);
+      });
+    });
+
     // `.[Storage.toInstance]` is tested by `.fromIdentifier`.
 
     describe("::addAltLabel", () => {
@@ -939,6 +945,12 @@ describe("TagSystem", () => {
       });
     });
 
+    describe("::system", () => {
+      it("[[Get]] returns the tag system", () => {
+        assertStrictEquals(new Tag().system, system);
+      });
+    });
+
     // `::tagURI` is tested by a `.fromTagURI`.
 
     describe("::taggingEntity", () => {
This page took 0.020692 seconds and 4 git commands to generate.