diff --git a/test.js b/test.js index 3559a8d..a893eb5 100644 --- a/test.js +++ b/test.js @@ -5,7 +5,7 @@ test(async t => { const binName = process.platform === 'win32' ? 'node.exe' : 'ava'; const list = await fn(); - t.true(list.some(x => x.name.includes(binName))); + t.true(list.some(x => x.name.indexOf(binName) !== -1)); t.true(list.every(x => typeof x.pid === 'number' && typeof x.name === 'string' &&