Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
⚡ improvement(test): add initial cb
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Apr 1, 2017
1 parent 5cb18bc commit 82e738c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template/test/helpers/wait-for-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ function timeout (n) {
}

// helper for mocha async assertions.
// nextTick().then(() => {
// nextTick(() => {
//
// Automatically waits for nextTick
// }).then(() => {
// return a promise or value to skip the wait
// })
function nextTick () {
const jobs = []
function nextTick (initialCb) {
const jobs = initialCb ? [initialCb] : []
let done

const chainer = {
Expand Down

0 comments on commit 82e738c

Please sign in to comment.