Merge pull request #633 from strongloop/fix-change-id-property
models/change: fix `id` property definition
This commit is contained in:
commit
9d000c2933
|
@ -15,7 +15,7 @@ var PersistedModel = require('./persisted-model')
|
|||
*/
|
||||
|
||||
var properties = {
|
||||
id: {type: String, generated: true, id: true},
|
||||
id: {type: String, id: true},
|
||||
rev: {type: String},
|
||||
prev: {type: String},
|
||||
checkpoint: {type: Number},
|
||||
|
|
|
@ -84,6 +84,7 @@ describe('Change', function(){
|
|||
it('should create an entry', function (done) {
|
||||
var test = this;
|
||||
Change.findById(this.result.id, function(err, change) {
|
||||
if (err) return done(err);
|
||||
assert.equal(change.id, test.result.id);
|
||||
done();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue