aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/scripts/notice-controller.js2
-rw-r--r--test/unit/app/controllers/notice-controller-test.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/notice-controller.js b/app/scripts/notice-controller.js
index 050fca9c8..63b422c5b 100644
--- a/app/scripts/notice-controller.js
+++ b/app/scripts/notice-controller.js
@@ -58,7 +58,7 @@ module.exports = class NoticeController extends EventEmitter {
}
}
- async markAllNoticesRead () {
+ markAllNoticesRead () {
const noticeList = this.getNoticesList()
noticeList.forEach(notice => {
notice.read = true
diff --git a/test/unit/app/controllers/notice-controller-test.js b/test/unit/app/controllers/notice-controller-test.js
index d550d86cd..caa50a03e 100644
--- a/test/unit/app/controllers/notice-controller-test.js
+++ b/test/unit/app/controllers/notice-controller-test.js
@@ -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)