1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

Use string for price attribute on integration tests.

This commit is contained in:
Pedro Gutiérrez 2019-05-23 13:07:27 +02:00 committed by Pedro Gutiérrez
parent 6fe8430b08
commit 337c527f7d
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ describe("Consume Asset", () => {
const initialBalance = (await consumer.getBalance()).ocn
await consumer.requestTokens(metadata.base.price)
assert.equal((await consumer.getBalance()).ocn, initialBalance + metadata.base.price, "OCN Tokens not delivered")
assert.equal((await consumer.getBalance()).ocn, initialBalance + +metadata.base.price, "OCN Tokens not delivered")
})
it("should sign the service agreement", async () => {

View File

@ -25,7 +25,7 @@ const metadata: Partial<MetaData> = {
inLanguage: "en",
categories: ["Economy", "Data Science"],
tags: ["weather", "uk", "2011", "temperature", "humidity"],
price: 10,
price: "10" + "0".repeat(18),
files: [
{
index: 0,