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

Commit 8c291394 by Sascha Depold

make sure that the done callback is called

1 parent 60c04501
Showing with 16 additions and 0 deletions
......@@ -203,3 +203,19 @@
cd ../../..
}
@test "--create-migration calls the done callback" {
cd test/binary/tmp
rm -rf ./*
../../../bin/sequelize -i
../../../bin/sequelize --create-migration "foo"
run cat migrations/*-foo.js
[ $status -eq 0 ]
[ $(expr "${lines[3]}" : " done()") -ne 0 ]
[ $(expr "${lines[7]}" : " done()") -ne 0 ]
cd ../../..
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!