Skip to content

Commit

Permalink
refactor fn name to avoid confusion with new one
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Feb 22, 2025
1 parent 76e80ce commit 9ee165a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions test/integration/ComputeFlow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
amountToUnits
} from '../../src'
import { ComputeJob, ComputeAsset, ComputeAlgorithm, Files } from '../../src/@types'
import { createAsset, handleComputeOrder } from './helpers'
import { createAssetHelper, handleComputeOrder } from './helpers'

let config: Config

Expand Down Expand Up @@ -302,7 +302,7 @@ describe('Compute flow tests', async () => {
amountToUnits(null, null, '1000', 18)
)

ddoWith5mTimeoutId = await createAsset(
ddoWith5mTimeoutId = await createAssetHelper(
'D1Min',
'D1M',
publisherAccount,
Expand All @@ -312,7 +312,7 @@ describe('Compute flow tests', async () => {
addresses.ERC721Factory,
aquarius
)
ddoWithNoTimeoutId = await createAsset(
ddoWithNoTimeoutId = await createAssetHelper(
'D1Min',
'D1M',
publisherAccount,
Expand All @@ -322,7 +322,7 @@ describe('Compute flow tests', async () => {
addresses.ERC721Factory,
aquarius
)
algoDdoWith5mTimeoutId = await createAsset(
algoDdoWith5mTimeoutId = await createAssetHelper(
'A1Min',
'A1M',
publisherAccount,
Expand All @@ -333,7 +333,7 @@ describe('Compute flow tests', async () => {
aquarius
)

algoDdoWithNoTimeoutId = await createAsset(
algoDdoWithNoTimeoutId = await createAssetHelper(
'A1Min',
'A1M',
publisherAccount,
Expand Down
12 changes: 6 additions & 6 deletions test/integration/PublishEditConsume.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
amountToUnits
} from '../../src'
import { Files, Smartcontract } from '../../src/@types'
import { createAsset, orderAsset, updateAssetMetadata } from './helpers'
import { createAssetHelper, orderAsset, updateAssetMetadata } from './helpers'

let config: Config

Expand Down Expand Up @@ -210,7 +210,7 @@ describe('Publish consume test', async () => {
})

it('Should publish url asset', async () => {
urlAssetId = await createAsset(
urlAssetId = await createAssetHelper(
'UrlDatatoken',
'URLDT',
publisherAccount,
Expand All @@ -223,7 +223,7 @@ describe('Publish consume test', async () => {
assert(urlAssetId, 'Failed to publish url DDO')
})
it('Should publish arweave asset', async () => {
arweaveAssetId = await createAsset(
arweaveAssetId = await createAssetHelper(
'ArwaveDatatoken',
'ARWAVEDT',
publisherAccount,
Expand All @@ -247,7 +247,7 @@ describe('Publish consume test', async () => {
}
]
}
ipfsAssetId = await createAsset(
ipfsAssetId = await createAssetHelper(
'IpfsDatatoken',
'IPFSDT',
publisherAccount,
Expand All @@ -274,7 +274,7 @@ describe('Publish consume test', async () => {
chainId: 8996
}
onchainFile.files[0] = chainFile
onchainAssetId = await createAsset(
onchainAssetId = await createAssetHelper(
'ChainDatatoken',
'CHAINDT',
publisherAccount,
Expand All @@ -288,7 +288,7 @@ describe('Publish consume test', async () => {
})

it('Should publish graphql asset', async () => {
grapqlAssetId = await createAsset(
grapqlAssetId = await createAssetHelper(
'GraphDatatoken',
'GRAPHDT',
publisherAccount,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
getEventFromTx
} from '../../src'
// superseed by src/utils/CreateAsset
export async function createAsset(
export async function createAssetHelper(
name: string,
symbol: string,
owner: Signer,
Expand Down

0 comments on commit 9ee165a

Please sign in to comment.