[Internal] Add nsfw tag (tag, not status) (#11536)

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
Adam R 2021-07-08 21:01:32 +02:00 committed by GitHub
parent 41037d09f0
commit 5dc4b993ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

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

View File

@ -50,4 +50,9 @@ export const TagValues: TagDescription[] = [
name: "Privacy",
description: "Privacy tokens."
},
{
id: "nsfw",
name: "NSFW",
description: "Content Not suitable for work."
},
];

View File

@ -149,7 +149,6 @@ 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);