aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2019-03-29 12:39:29 +0800
committerkumavis <aaron@kumavis.me>2019-03-29 12:39:29 +0800
commit846038a69c4cde10417ce54b280de3624d87d45c (patch)
treec1ed5f1cbbefce3e62a8e79f5578cf1214649a29
parente04f0c877ba94c126bbf94622640700c728f74c7 (diff)
downloadtangerine-wallet-browser-846038a69c4cde10417ce54b280de3624d87d45c.tar
tangerine-wallet-browser-846038a69c4cde10417ce54b280de3624d87d45c.tar.gz
tangerine-wallet-browser-846038a69c4cde10417ce54b280de3624d87d45c.tar.bz2
tangerine-wallet-browser-846038a69c4cde10417ce54b280de3624d87d45c.tar.lz
tangerine-wallet-browser-846038a69c4cde10417ce54b280de3624d87d45c.tar.xz
tangerine-wallet-browser-846038a69c4cde10417ce54b280de3624d87d45c.tar.zst
tangerine-wallet-browser-846038a69c4cde10417ce54b280de3624d87d45c.zip
notice-controller - make markAllNoticesRead sync
-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)