Notifications: remove timestamps (#8287)

* user notifications: make updatedAt public

* notifications: disable timestamps
This commit is contained in:
Matteo Pagliazzi
2016-12-15 17:33:24 +01:00
committed by GitHub
parent fa788f49fc
commit 237095d109
4 changed files with 4 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ describe('User Model', () => {
let userToJSON = user.toJSON();
expect(user.notifications.length).to.equal(1);
expect(userToJSON.notifications[0]).to.have.all.keys(['data', 'id', 'type', 'createdAt']);
expect(userToJSON.notifications[0]).to.have.all.keys(['data', 'id', 'type']);
expect(userToJSON.notifications[0].type).to.equal('CRON');
expect(userToJSON.notifications[0].data).to.eql({});
});
@@ -67,7 +67,7 @@ describe('User Model', () => {
let userToJSON = user.toJSON();
expect(user.notifications.length).to.equal(1);
expect(userToJSON.notifications[0]).to.have.all.keys(['data', 'id', 'type', 'createdAt']);
expect(userToJSON.notifications[0]).to.have.all.keys(['data', 'id', 'type']);
expect(userToJSON.notifications[0].type).to.equal('CRON');
expect(userToJSON.notifications[0].data).to.eql({field: 1});
});