From 6ccab2e7d596083282e0fb8deff39e82337fad48 Mon Sep 17 00:00:00 2001 From: Eric Mastro Date: Thu, 19 Jul 2018 09:34:35 +0200 Subject: [PATCH] Changed EmbarkJS to DTwitter (referenced wrong API) --- instructions/5 Coding: tests.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instructions/5 Coding: tests.md b/instructions/5 Coding: tests.md index bf2f3aa..2948653 100644 --- a/instructions/5 Coding: tests.md +++ b/instructions/5 Coding: tests.md @@ -1,6 +1,6 @@ ## Contract tests -Now that we have our contract written, we can use the code generation provided by EmbarkJS to write our contract unit test cases for TDD development. Embark will code generate a DTwitter javascript object from our contract and make it accessible in our dApp by way of the `EmbarkJS` object. -> Additionally, Embark also has an API for decentralised storage (IPFS and Swarm), and decentralised communication (Whisper), which are all configurable in config files. +Now that we have our contract written, we can use the code generation provided by EmbarkJS to write our contract unit test cases for TDD development. Embark will code generate a DTwitter javascript object from our contract and make it accessible in our dApp by way of the `DTwitter` object. +> Additionally, Embark also has an API (`EmbarkJS`) for decentralised storage (IPFS and Swarm), and decentralised communication (Whisper), which are all configurable in config files. ###### Create account transaction should be successful Our first test is to ensure that our `createAccount` transaction is sent successfully. ``` @@ -67,4 +67,4 @@ DTwitter contract ✓ should be able to edit 'testhandle' user details (186ms) ✓ should be able to add a tweet as 'testhandle' and receive it via contract event (54ms) ``` -> Note: there is a known error with `ganache` that sometimes causes last test does to fail with the error `ERROR: The returned value is not a convertible string`. We are currently investigating this issue. \ No newline at end of file +> Note: there is a known error with `ganache` that sometimes causes last test does to fail with the error `ERROR: The returned value is not a convertible string`. We are currently investigating this issue.