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) => {
|
it('handles null data', (done) => {
|
||||||
db = getSchema();
|
db = getSchema();
|
||||||
Model = db.define('MyModel', {
|
Model = db.define('HandleNullModel', {
|
||||||
data: {type: 'string'},
|
data: {type: 'string'},
|
||||||
});
|
});
|
||||||
db.automigrate(['Model'], function() {
|
db.automigrate(['HandleNullModel'], function() {
|
||||||
let a = new Model(null);
|
let a = new Model(null);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue