mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
[Internal] Add nsfw tag (tag, not status) (#11536)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
parent
41037d09f0
commit
5dc4b993ca
|
@ -2,8 +2,7 @@
|
|||
const StatusValues: string[] = [
|
||||
'active',
|
||||
'spam',
|
||||
'abandoned',
|
||||
'nsfw'
|
||||
'abandoned'
|
||||
];
|
||||
|
||||
export function isValidStatusValue(value: string): boolean {
|
||||
|
|
|
@ -50,4 +50,9 @@ export const TagValues: TagDescription[] = [
|
|||
name: "Privacy",
|
||||
description: "Privacy tokens."
|
||||
},
|
||||
{
|
||||
id: "nsfw",
|
||||
name: "NSFW",
|
||||
description: "Content Not suitable for work."
|
||||
},
|
||||
];
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user