});
});
+ describe(".constructor", () => {
+ it("[[Get]] is `Function`", () => {
+ assertStrictEquals(Tag.constructor, Function);
+ });
+ });
+
describe(".fromIRI", () => {
it("[[Call]] returns the persisted tag with the given I·R·I", () => {
const tag = new Tag();
});
});
- describe(".getSystem", () => {
- it("[[Has]] is not present", () => {
- assertFalse("getSystem" in Tag);
- });
- });
-
describe(".identifiers", () => {
it("[[Call]] yields all the persisted identifiers", () => {
const tags = new Set(function* () {
});
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);
});
});
});
it("[[Call]] throws when this is not a conceptual tag", () => {
+ const involved = new Tag();
+ involved.persist();
assertThrows(() => {
- new Tag().addInvolvesTag();
+ new Tag().addInvolvesTag(involved);
});
});