notifications: can also mark it as unread

This commit is contained in:
Girish Ramakrishnan
2021-04-21 12:00:07 -07:00
parent bb3f9744fb
commit d437acebe2
5 changed files with 37 additions and 31 deletions

View File

@@ -225,7 +225,7 @@ describe('database', function () {
});
it('can list by user', function (done) {
notificationdb.listByUserIdPaged(USER_0.id, 1, 100, function (error, result) {
notificationdb.list({ userId: USER_0.id }, 1, 100, function (error, result) {
expect(error).to.equal(null);
expect(result).to.be.an('array');
expect(result.length).to.equal(2);