Created
October 20, 2017 22:23
-
-
Save oceanapplications/7c74372d7cc31e95dd0db246ea164e4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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