From 3224d18168d11986bffc48f71f169a0c6b93dba8 Mon Sep 17 00:00:00 2001 From: jdsika Date: Tue, 10 Dec 2024 13:47:30 +0100 Subject: [PATCH] feat: use TEST_TOKEN_TAG Signed-off-by: jdsika --- .../common/asset/createTokenMetadata.test.ts | 12 ++++++++---- .../common/constants/tokenTags.ts | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/envited.ascs.digital/common/asset/createTokenMetadata.test.ts b/apps/envited.ascs.digital/common/asset/createTokenMetadata.test.ts index 699af96c..38ccf80a 100644 --- a/apps/envited.ascs.digital/common/asset/createTokenMetadata.test.ts +++ b/apps/envited.ascs.digital/common/asset/createTokenMetadata.test.ts @@ -6,6 +6,10 @@ import manifestRemoteAssetData from '../fixtures/manifestRemoteAssetData.json' import * as SUT from './createTokenMetadata' import { TOKEN_TAGS } from '../constants/tokenTags' +export const TEST_TOKEN_TAGS = { + ASAM_OPENDRIVE_VERSION: 'ASAM OpenDRIVE 1.6', +} + describe('common/asset/createTokenMetadata', () => { describe('createTokenMetadata', () => { it('should extract data from manifest and domainMetadata and create a token metadata object', async () => { @@ -16,7 +20,7 @@ describe('common/asset/createTokenMetadata', () => { isBooleanAmount: true, name: 'TestfeldNiedersachsen_ALKS_ODR_sample', description: 'simple hdmap example file on Testfeld Niedersachsen for ALKS scenario', - tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, 'ASAM OpenDRIVE 1.6', TOKEN_TAGS.THIRD_PARTY_HOSTED], + tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, TEST_TOKEN_TAGS.ASAM_OPENDRIVE_VERSION, TOKEN_TAGS.THIRD_PARTY_HOSTED], minter: 'MINTER', creators: ['CREATOR'], publishers: ['Automotive Solution Center for Simulation e.V.', 'ENVITED-X Data Space'], @@ -113,7 +117,7 @@ describe('common/asset/createTokenMetadata', () => { isBooleanAmount: true, name: 'TestfeldNiedersachsen_ALKS_ODR_sample', description: 'simple hdmap example file on Testfeld Niedersachsen for ALKS scenario', - tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, 'ASAM OpenDRIVE 1.6', TOKEN_TAGS.THIRD_PARTY_HOSTED], + tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, TEST_TOKEN_TAGS.ASAM_OPENDRIVE_VERSION, TOKEN_TAGS.THIRD_PARTY_HOSTED], minter: 'MINTER', creators: ['CREATOR'], publishers: ['Automotive Solution Center for Simulation e.V.', 'ENVITED-X Data Space'], @@ -210,7 +214,7 @@ describe('common/asset/createTokenMetadata', () => { isBooleanAmount: true, name: 'TestfeldNiedersachsen_ALKS_ODR_sample', description: 'simple hdmap example file on Testfeld Niedersachsen for ALKS scenario', - tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, 'ASAM OpenDRIVE 1.6'], + tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, TEST_TOKEN_TAGS.ASAM_OPENDRIVE_VERSION], minter: 'MINTER', creators: ['CREATOR'], publishers: ['Automotive Solution Center for Simulation e.V.', 'ENVITED-X Data Space'], @@ -307,7 +311,7 @@ describe('common/asset/createTokenMetadata', () => { isBooleanAmount: true, name: 'TestfeldNiedersachsen_ALKS_ODR_sample', description: 'simple hdmap example file on Testfeld Niedersachsen for ALKS scenario', - tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, 'ASAM OpenDRIVE 1.6'], + tags: [TOKEN_TAGS.GAIA_X, TOKEN_TAGS.ASCS, TOKEN_TAGS.ENVITED_X, TOKEN_TAGS.EVES, TOKEN_TAGS.NFT, TEST_TOKEN_TAGS.ASAM_OPENDRIVE_VERSION], minter: 'MINTER', creators: ['CREATOR'], publishers: ['Automotive Solution Center for Simulation e.V.', 'ENVITED-X Data Space'], diff --git a/apps/envited.ascs.digital/common/constants/tokenTags.ts b/apps/envited.ascs.digital/common/constants/tokenTags.ts index e19ea4da..9668ee80 100644 --- a/apps/envited.ascs.digital/common/constants/tokenTags.ts +++ b/apps/envited.ascs.digital/common/constants/tokenTags.ts @@ -4,5 +4,5 @@ export const TOKEN_TAGS = { ENVITED_X: 'ENVITED-X', EVES: 'EVES', NFT: 'nft', - THIRD_PARTY_HOSTED: "Third Party Hosted", + THIRD_PARTY_HOSTED: 'Third Party Hosted', } \ No newline at end of file