From 210e2de53b06ceeba871c20cde41ec6b3316b2e4 Mon Sep 17 00:00:00 2001 From: martig7 Date: Thu, 26 Jun 2025 12:08:18 -0400 Subject: [PATCH] Add LiveChat everywhere where modules are mentioned --- dist/index.js | 1 + src/validate.ts | 1 + test/validate.spec.ts | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 768a0a3..26d5bca 100644 --- a/dist/index.js +++ b/dist/index.js @@ -72,6 +72,7 @@ exports.allowedModules = [ "Submission", "Autograding", "Forum", + "LiveChat", "Notifications", "TAGrading", "InstructorUI", diff --git a/src/validate.ts b/src/validate.ts index c7bb6e8..9d33a95 100644 --- a/src/validate.ts +++ b/src/validate.ts @@ -15,6 +15,7 @@ export const allowedModules = [ "Submission", "Autograding", "Forum", + "LiveChat", "Notifications", "TAGrading", "InstructorUI", diff --git a/test/validate.spec.ts b/test/validate.spec.ts index c8f02f3..9620361 100644 --- a/test/validate.spec.ts +++ b/test/validate.spec.ts @@ -141,7 +141,7 @@ describe("validate", () => { ) ).to.throw(`Errors detected in title: - Invalid type, expected one of Bugfix, Feature, Refactor, Testing, Documentation, VPAT, UI/UX, Dependency, DevDependency. Got Fake. - - Invalid module, expected one of Submission, Autograding, Forum, Notifications, TAGrading, InstructorUI, SubminiPolls, HelpQueue, CourseMaterials, Plagiarism, RainbowGrades, Calendar, System, Developer, API. Got Error. + - Invalid module, expected one of Submission, Autograding, Forum, LiveChat, Notifications, TAGrading, InstructorUI, SubminiPolls, HelpQueue, CourseMaterials, Plagiarism, RainbowGrades, Calendar, System, Developer, API. Got Error. - Too long a message, expected at most 40 characters, got 56 characters.`); }); });