diff --git a/package.json b/package.json index af30f7a3..9638293a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "impro", - "version": "0.7.3", + "version": "0.7.4", "type": "module", "scripts": { "start": "rm -rf build && NODE_ENV=development eleventy --serve", diff --git a/src/js/templates/moderationWarning.template.js b/src/js/templates/moderationWarning.template.js index 0274a833..aae4f904 100644 --- a/src/js/templates/moderationWarning.template.js +++ b/src/js/templates/moderationWarning.template.js @@ -15,9 +15,7 @@ export function moderationWarningTemplate({ labelName += " (Account)"; } // If no labeler, the labeler is the author of the post - const labelerName = labeler - ? "@" + labeler.creator.handle - : "the post author"; + const labelerName = labeler ? "@" + labeler.creator.handle : "the author."; const labelerLink = labeler ? linkToLabeler(labeler) : null; return html` { }); t.describe("moderationWarningTemplate - no labeler", (it) => { - it("should show 'the post author' when labeler is null", () => { + it("should show 'the author.' when labeler is null", () => { const result = moderationWarningTemplate({ labelDefinition: mockLabelDefinition, labeler: null, @@ -91,7 +91,7 @@ t.describe("moderationWarningTemplate - no labeler", (it) => { const container = document.createElement("div"); render(result, container); const warning = container.querySelector("moderation-warning"); - assertEquals(warning.getAttribute("labelerName"), "the post author"); + assertEquals(warning.getAttribute("labelerName"), "the author."); }); it("should have null labelerLink when labeler is null", () => {