Remove the generated flag as the id is set by the before hook
This commit is contained in:
parent
c80b334130
commit
f031e79392
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue