Automigrate before relation tests
This commit is contained in:
parent
e8077faa1c
commit
349931780a
|
@ -117,6 +117,7 @@ describe('relations', function() {
|
||||||
|
|
||||||
it('can be used to query data', function(done) {
|
it('can be used to query data', function(done) {
|
||||||
List.hasMany('todos', {model: Item});
|
List.hasMany('todos', {model: Item});
|
||||||
|
db.automigrate(function() {
|
||||||
List.create(function(e, list) {
|
List.create(function(e, list) {
|
||||||
should.not.exist(e);
|
should.not.exist(e);
|
||||||
should.exist(list);
|
should.exist(list);
|
||||||
|
@ -130,6 +131,7 @@ describe('relations', function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('hasAndBelongsToMany', function() {
|
describe('hasAndBelongsToMany', function() {
|
||||||
it('can be declared');
|
it('can be declared');
|
||||||
|
|
Loading…
Reference in New Issue