Remove the generated flag as the id is set by the before hook

This commit is contained in:
Raymond Feng 2014-03-17 10:01:29 -07:00
parent c80b334130
commit f031e79392
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ var PushNotificationSettingSchema = {
* Data model for Application * Data model for Application
*/ */
var ApplicationSchema = { var ApplicationSchema = {
id: {type: String, id: true, generated: true}, id: {type: String, id: true},
// Basic information // Basic information
name: {type: String, required: true}, // The name name: {type: String, required: true}, // The name
description: String, // The description description: String, // The description

View File

@ -20,6 +20,7 @@ describe('Application', function () {
assert(app.masterKey); assert(app.masterKey);
assert(app.created); assert(app.created);
assert(app.modified); assert(app.modified);
assert.equal(typeof app.id, 'string');
done(err, result); done(err, result);
}); });
}); });