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

Commit

Permalink
chore: rename param
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Sep 11, 2019
1 parent 8e60322 commit 5e39dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cli/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const tempWrite = require('temp-write')
const pkg = require('../../package.json')

const skipOnWindows = isWindows() ? it.skip : it
const daemonReady = (daemon, fn) => {
const daemonReady = (daemon, cb) => {
let r = null
const p = new Promise((resolve, reject) => {
daemon.stdout.on('data', async (data) => {
if (data.toString().includes('Daemon is ready')) {
try {
r = await fn()
r = await cb()
} catch (err) {
reject(err)
}
Expand Down

0 comments on commit 5e39dc7

Please sign in to comment.