1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

notice-controller - make markAllNoticesRead sync

This commit is contained in:
kumavis 2019-03-29 12:39:29 +08:00
parent e04f0c877b
commit 846038a69c
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ module.exports = class NoticeController extends EventEmitter {
}
}
async markAllNoticesRead () {
markAllNoticesRead () {
const noticeList = this.getNoticesList()
noticeList.forEach(notice => {
notice.read = true

View File

@ -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)