mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
updated tests to comply with the new prettylist
This commit is contained in:
parent
26e528df1f
commit
2e1385acd5
@ -34,7 +34,7 @@ spec "Module should be installed"
|
||||
# one time in the raw env, and a second time prefixed with the module name
|
||||
#
|
||||
OUT=`$pm2 prettylist | grep -o "config1xxx" | wc -l`
|
||||
[ $OUT -eq 2 ] || fail "$1"
|
||||
[ $OUT -eq 5 ] || fail "$1"
|
||||
success "$1"
|
||||
|
||||
$pm2 update
|
||||
|
||||
@ -14,18 +14,18 @@ $pm2 kill
|
||||
$pm2 start echo.js
|
||||
sleep 1
|
||||
|
||||
should 'should have versioning metadata' 'versioning: \[Object\]' 1
|
||||
should 'should have versioning metadata' 'github.com' 1
|
||||
|
||||
$pm2 delete all
|
||||
$pm2 start echo.js --no-vizion
|
||||
sleep 1
|
||||
|
||||
should 'should not have versioning metadata' 'versioning: \[Object\]' 0
|
||||
should 'should not have versioning metadata' 'github.com' 0
|
||||
|
||||
$pm2 delete all
|
||||
$pm2 start no-vizion.json
|
||||
sleep 1
|
||||
|
||||
should 'should not have versioning metadata' 'versioning: \[Object\]' 0
|
||||
should 'should not have versioning metadata' 'github.com' 0
|
||||
|
||||
mv .git git
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user