summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-02-07 22:48:06 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commita990183265d66f01e46a867d228789fa62dc5086 (patch)
tree1ff90122f730ffd9e7501a7c044ece2bb8677793 /js
parent3b4a1a1e4e230f94f95b3c86cce6942b4266f379 (diff)
✅ Update jasmine tests to use share data
- explicitly state that isShared = false - we don't track unreadCount of feeds we don't own => a shared item is still in the sharers feed - cache only gets updated for current users feeds Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/tests/unit/controller/ContentControllerSpec.js21
1 files changed, 14 insertions, 7 deletions
diff --git a/js/tests/unit/controller/ContentControllerSpec.js b/js/tests/unit/controller/ContentControllerSpec.js
index e8992ca8c..e45f896f0 100644
--- a/js/tests/unit/controller/ContentControllerSpec.js
+++ b/js/tests/unit/controller/ContentControllerSpec.js
@@ -123,19 +123,22 @@ describe('ContentController', function () {
id: 3,
feedId: 4,
fingerprint: 'a',
- unread: true
+ unread: true,
+ isShared: false
},
{
id: 5,
feedId: 4,
fingerprint: 'b',
- keepUnread: true
+ keepUnread: true,
+ isShared: false
},
{
id: 9,
feedId: 5,
fingerprint: 'c',
- unread: false
+ unread: false,
+ isShared: false
}]
},
});
@@ -189,7 +192,8 @@ describe('ContentController', function () {
id: 3,
feedId: 4,
unread: false,
- keepUnread: true
+ keepUnread: true,
+ isShared: false
}]
},
});
@@ -301,18 +305,21 @@ describe('ContentController', function () {
{
id: 3,
fingerprint: 'a',
- feedId: 6
+ feedId: 6,
+ isShared: false
},
{
id: 2,
fingerprint: 'b',
feedId: 4,
- keepUnread: true
+ keepUnread: true,
+ isShared: false
},
{
id: 1,
fingerprint: 'c',
- feedId: 4
+ feedId: 4,
+ isShared: false
},]
},
});