remove equality value for user defined id (#1293)

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 18:45:23 +02:00 committed by Sakib Hasan
parent cac575398d
commit 957058e2d4
1 changed files with 0 additions and 2 deletions

View File

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