diff --git a/script/generic/status-values.ts b/script/generic/status-values.ts index 60bc7c6b1..27e7f56ee 100644 --- a/script/generic/status-values.ts +++ b/script/generic/status-values.ts @@ -2,7 +2,8 @@ const StatusValues: string[] = [ 'active', 'spam', - 'abandoned' + 'abandoned', + 'nsfw' ]; export function isValidStatusValue(value: string): boolean { diff --git a/test/index.test.ts b/test/index.test.ts index d0da36415..c61a52b9a 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -149,6 +149,7 @@ describe("Test status, tag values", () => { test(`Test status-values`, () => { expect(isValidStatusValue("active")).toEqual(true); expect(isValidStatusValue("abandoned")).toEqual(true); + expect(isValidStatusValue("nsfw")).toEqual(true); expect(isValidStatusValue("invalidvalue")).toEqual(false); expect(isValidStatusValue("ACTIVE")).toEqual(false); expect(isValidStatusValue("")).toEqual(false);