Skip to content

Commit

Permalink
feat: use TEST_TOKEN_TAG
Browse files Browse the repository at this point in the history
Signed-off-by: jdsika <[email protected]>
  • Loading branch information
jdsika committed Dec 10, 2024
1 parent e96ca65 commit 3224d18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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'],
Expand Down Expand Up @@ -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'],
Expand Down Expand Up @@ -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'],
Expand Down Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion apps/envited.ascs.digital/common/constants/tokenTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}

0 comments on commit 3224d18

Please sign in to comment.