2
0
mirror of synced 2025-02-24 20:18:07 +00:00

Fixing Travis CI, missing nextTick.

This commit is contained in:
Richard Moore 2018-06-03 02:42:53 -04:00
parent ac82a5cb83
commit da74e95f88
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
2 changed files with 12 additions and 4 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "ethers", "name": "ethers",
"version": "3.0.3", "version": "3.0.18",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -19,10 +19,11 @@
<script src="./dist/es6-promise.auto.js"></script> <script src="./dist/es6-promise.auto.js"></script>
<!-- <!--
Shim for PhantomJS: Shims for PhantomJS
- ArrayBuffer.isView
--> -->
<script type="text/javascript"> <script type="text/javascript">
// ArrayBuffer.isView
if (!ArrayBuffer.isView) { if (!ArrayBuffer.isView) {
ArrayBuffer.isView = function(obj) { ArrayBuffer.isView = function(obj) {
// @TODO: This should probably check various instanceof aswell // @TODO: This should probably check various instanceof aswell
@ -30,11 +31,17 @@
} }
} }
// nextTick
if (!window.nextTick) {
window.nextTick = function (callback) { setTimeout(callback, 0); }
}
// https://github.com/nathanboktae/mocha-phantomjs-core#usage // https://github.com/nathanboktae/mocha-phantomjs-core#usage
if (typeof(initMochaPhantomJS) === 'function') { if (typeof(initMochaPhantomJS) === 'function') {
initMochaPhantomJS(); initMochaPhantomJS();
} }
</script> </script>
<!-- Inject the mocha describe and it functions --> <!-- Inject the mocha describe and it functions -->
@ -48,7 +55,8 @@
<!-- Run the test cases! --> <!-- Run the test cases! -->
<script type="text/javascript"> <script type="text/javascript">
//mocha.grep(new RegExp('...')).run(); // Use this to focus on specific test cases
//mocha.grep(new RegExp('Test Brain Wallets')).run();
mocha.run(); mocha.run();
</script> </script>
</body> </body>