Fix the embedsOne test cases
This commit is contained in:
parent
beaf6e5345
commit
a1c1a9c658
|
@ -1337,10 +1337,11 @@ describe('relations', function () {
|
||||||
Other = db.define('Other', {name: String});
|
Other = db.define('Other', {name: String});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can be declared using embedsOne method', function () {
|
it('can be declared using embedsOne method', function (done) {
|
||||||
Person.embedsOne(Passport, {
|
Person.embedsOne(Passport, {
|
||||||
default: {name: 'Anonymous'} // a bit contrived
|
default: {name: 'Anonymous'} // a bit contrived
|
||||||
});
|
});
|
||||||
|
db.automigrate(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have setup a property and accessor', function() {
|
it('should have setup a property and accessor', function() {
|
||||||
|
|
Loading…
Reference in New Issue