Fix basic-querying (#1509)
* Fix basic-querying * Fix duplicate MyModel
This commit is contained in:
parent
c13f35ad49
commit
e85e0f600b
|
@ -172,10 +172,10 @@ describe('datatypes', function() {
|
|||
|
||||
it('handles null data', (done) => {
|
||||
db = getSchema();
|
||||
Model = db.define('MyModel', {
|
||||
Model = db.define('HandleNullModel', {
|
||||
data: {type: 'string'},
|
||||
});
|
||||
db.automigrate(['Model'], function() {
|
||||
db.automigrate(['HandleNullModel'], function() {
|
||||
let a = new Model(null);
|
||||
done();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue