diff options
author | isaacs <i@izs.me> | 2020-07-21 02:11:38 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2020-07-30 01:34:46 +0300 |
commit | bd080ea129f0d4160bfcd77516892ba50ff6d4ad (patch) | |
tree | 1c1e33ccc68b45f0e993964586afdd8429e8bc3f /test | |
parent | d2821b74b7de0b5c578ab0a770c9a8945d1c16bf (diff) |
tests for start, stop, restart
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/restart.js | 5 | ||||
-rw-r--r-- | test/lib/start.js | 5 | ||||
-rw-r--r-- | test/lib/stop.js | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/test/lib/restart.js b/test/lib/restart.js new file mode 100644 index 000000000..f705d5f60 --- /dev/null +++ b/test/lib/restart.js @@ -0,0 +1,5 @@ +const t = require('tap') +const restart = require('../../lib/restart.js') +t.isa(restart, Function) +t.equal(restart.completion, undefined, 'no completion') +t.equal(restart.usage, 'npm restart [-- <args>]') diff --git a/test/lib/start.js b/test/lib/start.js new file mode 100644 index 000000000..a40126d71 --- /dev/null +++ b/test/lib/start.js @@ -0,0 +1,5 @@ +const t = require('tap') +const start = require('../../lib/start.js') +t.isa(start, Function) +t.equal(start.completion, undefined, 'no completion') +t.equal(start.usage, 'npm start [-- <args>]') diff --git a/test/lib/stop.js b/test/lib/stop.js new file mode 100644 index 000000000..12523935b --- /dev/null +++ b/test/lib/stop.js @@ -0,0 +1,5 @@ +const t = require('tap') +const stop = require('../../lib/stop.js') +t.isa(stop, Function) +t.equal(stop.completion, undefined, 'no completion') +t.equal(stop.usage, 'npm stop [-- <args>]') |