Guest User

Untitled

a guest
Oct 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. it("should read ethereum price through oraclize", function(){
  2. return Contract.deployed().then(function(instance){
  3. return instance;
  4. }).then(function(instance){
  5. instance.updatePrice({value:20000});
  6. });
  7. });
  8.  
  9. it("should wait 1 minute and read returned value", function(){
  10. setTimeout(function(){
  11. return Contract.deployed().then(function(instance){
  12. return instance;
  13. }).then(function(instance){
  14. return instance.ETHUSD();
  15. }).then(function(result){
  16. console.dir(result);
  17. });
  18. }, 1000*60*3);
  19. });
Add Comment
Please, Sign In to add comment