@ -58,7 +58,7 @@ module.exports = class NoticeController extends EventEmitter {
}
async markAllNoticesRead () {
markAllNoticesRead () {
const noticeList = this.getNoticesList()
noticeList.forEach(notice => {
notice.read = true
@ -57,7 +57,7 @@ describe('notice-controller', function () {
noticeController.setNoticesList(testList)
await noticeController.markAllNoticesRead()
noticeController.markAllNoticesRead()
const unreadNotices = noticeController.getUnreadNotices()
assert.equal(unreadNotices.length, 0)