Skip to content
Permalink
Browse files
Replace Q.delay with npm package delay
  • Loading branch information
raphinesse committed Sep 29, 2018
1 parent 86394db commit 768135143a8c7217fe06b6921391d614af1f809c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
@@ -17,9 +17,9 @@
under the License.
**/

const Q = require('q');
const path = require('path');
const fs = require('fs-extra');
const delay = require('delay');
const globby = require('globby');

const HooksRunner = require('../src/hooks/HooksRunner');
@@ -352,7 +352,7 @@ describe('HooksRunner', function () {
const order = [];
// Delay 100 ms here to check that h2 is not executed until after
// the promise returned by h1 is resolved.
const h1 = _ => Q.delay(100).then(_ => order.push(1));
const h1 = _ => delay(100).then(_ => order.push(1));
const h2 = _ => Promise.resolve().then(_ => order.push(2));

cordova.on(test_event, h1);
@@ -37,6 +37,7 @@
},
"devDependencies": {
"codecov": "^3.0.1",
"delay": "^4.0.0",
"eslint": "^4.2.0",
"eslint-config-semistandard": "^12.0.1",
"eslint-config-standard": "^11.0.0",

0 comments on commit 7681351

Please sign in to comment.