Fixing Travis CI, missing nextTick.
This commit is contained in:
parent
ac82a5cb83
commit
da74e95f88
2
package-lock.json
generated
2
package-lock.json
generated
@ -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": {
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user