diff --git a/index.js b/index.js index d1aa2dac17..aad9ac8877 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,6 @@ 'use strict'; const path = require('path'); const childProcess = require('child_process'); -const util = require('util'); const crossSpawn = require('cross-spawn'); const stripEof = require('strip-eof'); const npmRunPath = require('npm-run-path'); @@ -360,5 +359,3 @@ module.exports.sync = (cmd, args, opts) => { }; module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts); - -module.exports.spawn = util.deprecate(module.exports, 'execa.spawn() is deprecated. Use execa() instead.'); diff --git a/test.js b/test.js index 9633992a7e..c85e91c266 100644 --- a/test.js +++ b/test.js @@ -98,11 +98,6 @@ test('execa.shell()', async t => { t.is(stdout, 'foo'); }); -test('execa.spawn()', async t => { - t.is(typeof m.spawn('noop').pid, 'number'); - t.is((await getStream(m.spawn('noop', ['foo']).stdout)).trim(), 'foo'); -}); - test('execa.sync()', t => { const {stdout} = m.sync('noop', ['foo']); t.is(stdout, 'foo');