Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #178 from kleros/test/get-meta-evidence
Browse files Browse the repository at this point in the history
[test] get meta-evidence
  • Loading branch information
n1c01a5 committed Oct 1, 2018
2 parents 31193a4 + 512b5d4 commit a03d087
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kleros-api",
"version": "0.17.1",
"version": "0.18.4",
"description": "A Javascript library that makes it easy to build relayers and other DApps that use the Kleros protocol.",
"keywords": [
"Blockchain",
Expand Down
9 changes: 8 additions & 1 deletion tests/integration/contracts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ describe('Contracts', () => {
value: 0,
timeout: 1,
extraData: '',
metaEvidenceUri: 'https://my-meta-evidence.ipfs.io'
metaEvidenceUri: 'https://jsonplaceholder.typicode.com/posts/42', // assume this api is available and renders the content below
metaEvidence: {
userId: 5,
id: 42,
title: "commodi ullam sint et excepturi error explicabo praesentium voluptas",
body: "odio fugit voluptatum ducimus earum autem est incidunt voluptatem\nodit reiciendis aliquam sunt sequi nulla dolorem\nnon facere repellendus voluptates quia\nratione harum vitae ut"
}
}
})

Expand Down Expand Up @@ -183,6 +189,7 @@ describe('Contracts', () => {
expect(transactionArbitrable0.buyerFee).toEqual(0)
expect(transactionArbitrable0.lastInteraction).toBeDefined()
expect(transactionArbitrable0.status).toEqual(0)
expect(transactionArbitrable0.metaEvidence).toEqual(arbitrableContractData.metaEvidence)
},
10000
)
Expand Down

0 comments on commit a03d087

Please sign in to comment.