不要怂,就是干,撸起袖子干!

Commit 6fc3d546 by Sascha Depold

test the version

1 parent 18098506
Showing with 6 additions and 0 deletions
...@@ -22,6 +22,12 @@ ...@@ -22,6 +22,12 @@
[ "${lines[0]}" = " Usage: sequelize [options]" ] [ "${lines[0]}" = " Usage: sequelize [options]" ]
} }
@test "--version prints the current version" {
run bin/sequelize --version
[ $status -eq 0 ]
[ "${lines[0]}" = `cat package.json|grep version|cut -f2 -d:|cut -f2 -d\"` ]
}
@test "-V prints the current version" { @test "-V prints the current version" {
run bin/sequelize -V run bin/sequelize -V
[ $status -eq 0 ] [ $status -eq 0 ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!