Skip to content

Commit

Permalink
ci: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Mar 6, 2024
1 parent e385623 commit e25b1e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ncli": "./dist/src/index.js"
},
"dependencies": {
"@nevermined-io/sdk": "^2.2.8",
"@nevermined-io/sdk": "^2.2.9",
"@nevermined-io/sdk-dtp": "^0.7.0-rc5",
"log4js": "^6.9.1",
"chalk": "^4.1.2",
Expand Down
12 changes: 6 additions & 6 deletions src/commands/agreements/showAgreement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export const showAgreement = async (
)
)

logger.info(chalk.dim(`Condition Ids:`))
await agreementData.conditionIds.forEach(async (_conditionId, _index) => {
const cond = await nvmApp.sdk.keeper.conditionStoreManager.getCondition(_conditionId)
logger.info(chalk.dim(`\tCondition Id[${_index}]= ${_conditionId} with status: ${cond.state}. Timeout: ${cond.timeOut} - Timelock: ${cond.timeLock}`))
})
// logger.info(chalk.dim(`Condition Ids:`))
// await agreementData.conditionIds.map(async (_conditionId, _index) => {
// const cond = await nvmApp.sdk.keeper.conditionStoreManager.getCondition(_conditionId)
// logger.info(chalk.dim(`\tCondition Id[${_index}]= ${_conditionId} with status: ${cond.state}. Timeout: ${cond.timeOut} - Timelock: ${cond.timeLock}`))
// })

if (contractName === 'NFTAccessTemplate')
await nvmApp.sdk.keeper.templates.nftAccessTemplate.printAgreementStatus(
Expand All @@ -81,7 +81,7 @@ export const showAgreement = async (
await nvmApp.sdk.keeper.templates.nft721AccessTemplate.printAgreementStatus(
agreementId
)
else if (contractName === 'NFT721SalesTemplate')
else if (contractName === 'NFT721SalesTemplate')
await nvmApp.sdk.keeper.templates.nft721SalesTemplate.printAgreementStatus(
agreementId
)
Expand Down
4 changes: 2 additions & 2 deletions test/integration/AssetsEncrypt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import execCommand from '../helpers/ExecCommand'

// TODO: Re-enable DTP tests when `sdk-dtp` is published back
describe.skip('Assets e2e Testing', () => {
describe('Assets e2e Testing', () => {
let did = ''
let url = ''
let password = ''
Expand Down Expand Up @@ -57,7 +57,7 @@ describe.skip('Assets e2e Testing', () => {
})

test('Order and download an asset', async () => {
const getCommand = `${baseCommands.assets.getAsset} ${did} --accountIndex 0 --fileIndex 1 --password abde --destination /tmp`
const getCommand = `${baseCommands.assets.getAsset} ${did} --accountIndex 1 --fileIndex 1 --password abde --destination /tmp/.cli-test`
console.debug(`COMMAND: ${getCommand}`)

const getStdout = execCommand(getCommand, execOpts)
Expand Down

0 comments on commit e25b1e3

Please sign in to comment.