From 957058e2d4434696b875d0e143ebd0080f8a510b Mon Sep 17 00:00:00 2001 From: Matteo Padovano Date: Tue, 4 Apr 2017 18:45:23 +0200 Subject: [PATCH] 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. --- test/manipulation.test.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/manipulation.test.js b/test/manipulation.test.js index 9d0f0762..36671ad3 100644 --- a/test/manipulation.test.js +++ b/test/manipulation.test.js @@ -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(); });