Tiny fixes
This commit is contained in:
parent
b4144598bf
commit
d8cafd0c84
|
@ -1749,6 +1749,8 @@ EmbedsOne.prototype.related = function (refresh, params) {
|
|||
}
|
||||
|
||||
var embeddedInstance = modelInstance[propertyName];
|
||||
embeddedInstance.__persisted = true;
|
||||
|
||||
if (typeof params === 'function') { // acts as async getter
|
||||
var cb = params;
|
||||
process.nextTick(function() {
|
||||
|
|
|
@ -82,7 +82,6 @@ describe('manipulation', function () {
|
|||
err.should.be.instanceof(ValidationError);
|
||||
err.message.should.equal('The `Person` instance is not valid. Details: `id` can\'t be set.');
|
||||
err.statusCode.should.equal(422);
|
||||
inst.isNewRecord().should.be.true;
|
||||
inst.id.should.equal(123456);
|
||||
inst.isNewRecord().should.be.true;
|
||||
done();
|
||||
|
|
Loading…
Reference in New Issue