Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save oceanapplications/7c74372d7cc31e95dd0db246ea164e4a to your computer and use it in GitHub Desktop.
Save oceanapplications/7c74372d7cc31e95dd0db246ea164e4a to your computer and use it in GitHub Desktop.
it("should read ethereum price through oraclize", function(){
return Contract.deployed().then(function(instance){
return instance;
}).then(function(instance){
instance.updatePrice({value:20000});
});
});
it("should wait 1 minute and read returned value", function(){
setTimeout(function(){
return Contract.deployed().then(function(instance){
return instance;
}).then(function(instance){
return instance.ETHUSD();
}).then(function(result){
console.dir(result);
});
}, 1000*60*3);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment