Changed EmbarkJS to DTwitter (referenced wrong API)
This commit is contained in:
parent
586bf4fc49
commit
6ccab2e7d5
|
@ -1,6 +1,6 @@
|
||||||
## Contract tests
|
## 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.
|
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 for decentralised storage (IPFS and Swarm), and decentralised communication (Whisper), which are all configurable in config files.
|
> 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
|
###### Create account transaction should be successful
|
||||||
Our first test is to ensure that our `createAccount` transaction is sent successfully.
|
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 edit 'testhandle' user details (186ms)
|
||||||
✓ should be able to add a tweet as 'testhandle' and receive it via contract event (54ms)
|
✓ 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.
|
> 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.
|
||||||
|
|
Loading…
Reference in New Issue