remove equality value for user-defined id (#1292)

Some connector, like arangodb, not support id as Number.
 When `forceId` is set to true and id is set `Model.isValid`
 report error and the field id is not coerced.
This commit is contained in:
Matteo Padovano 2017-04-04 19:15:19 +02:00 committed by Sakib Hasan
parent 570da781b8
commit 93b89f3a51
1 changed files with 0 additions and 2 deletions

View File

@ -128,7 +128,6 @@ describe('manipulation', function() {
err.statusCode.should.equal(422); err.statusCode.should.equal(422);
err.details.messages.id.should.eql(['can\'t be set']); err.details.messages.id.should.eql(['can\'t be set']);
p.should.be.instanceof(Person); p.should.be.instanceof(Person);
p.id.should.equal(123456);
p.isNewRecord().should.be.true; p.isNewRecord().should.be.true;
done(); done();
}); });
@ -154,7 +153,6 @@ describe('manipulation', function() {
err.should.be.instanceof(ValidationError); err.should.be.instanceof(ValidationError);
err.statusCode.should.equal(422); err.statusCode.should.equal(422);
err.details.messages.id.should.eql(['can\'t be set']); err.details.messages.id.should.eql(['can\'t be set']);
inst.id.should.equal(123456);
inst.isNewRecord().should.be.true; inst.isNewRecord().should.be.true;
done(); done();
}); });