From 62f50817bb1fd1ef3260f24af9978a01763968c3 Mon Sep 17 00:00:00 2001 From: Adam R <13562139+catenocrypt@users.noreply.github.com> Date: Thu, 8 Jul 2021 16:20:02 +0200 Subject: [PATCH] Add new nsfw tag (#11525) Co-authored-by: Catenocrypt --- script/generic/status-values.ts | 3 ++- test/index.test.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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);