Add new nsfw tag (#11525)

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
Adam R 2021-07-08 16:20:02 +02:00 committed by GitHub
parent 69e9359c97
commit 62f50817bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,8 @@
const StatusValues: string[] = [
'active',
'spam',
'abandoned'
'abandoned',
'nsfw'
];
export function isValidStatusValue(value: string): boolean {

View File

@ -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);