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

Commit a6eadf1b by shane adams

test for bad datatype

1 parent 2ec0a0c3
Showing with 14 additions and 0 deletions
......@@ -205,6 +205,20 @@ describe("[" + Helpers.getTestDialectTeaser() + "] DAOFactory", function() {
})
})
it('raises an error if you mess up the datatype', function(done) {
try {
var User = this.sequelize.define('UserBadDataType', {
activity_date: Sequelize.DATe
});
done()
}
catch( e ) {
expect(e.message).toEqual('Unrecognized data type for field activity_date')
done()
}
})
it('sets a 64 bit int in bigint', function(done) {
var User = this.sequelize.define('UserWithBigIntFields', {
big: Sequelize.BIGINT
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!