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

Commit 18098506 by Sascha Depold

test the version

1 parent ea6211f4
Showing with 7 additions and 1 deletions
...@@ -27,7 +27,7 @@ postgres: ...@@ -27,7 +27,7 @@ postgres:
postgres-native: postgres-native:
@DIALECT=postgres-native make test @DIALECT=postgres-native make test
binary: binary:
./test/binary/test.bats @./test/binary/test.bats
# test aliases # test aliases
......
...@@ -21,3 +21,9 @@ ...@@ -21,3 +21,9 @@
[ $status -eq 0 ] [ $status -eq 0 ]
[ "${lines[0]}" = " Usage: sequelize [options]" ] [ "${lines[0]}" = " Usage: sequelize [options]" ]
} }
@test "-V prints the current version" {
run bin/sequelize -V
[ $status -eq 0 ]
[ "${lines[0]}" = `cat package.json|grep version|cut -f2 -d:|cut -f2 -d\"` ]
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!