From a990183265d66f01e46a867d228789fa62dc5086 Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Sun, 7 Feb 2021 22:48:06 +0100 Subject: =?UTF-8?q?=E2=9C=85=20Update=20jasmine=20tests=20to=20use=20share?= =?UTF-8?q?=20data=20-=20explicitly=20state=20that=20isShared=20=3D=20fals?= =?UTF-8?q?e=20-=20we=20don't=20track=20unreadCount=20of=20feeds=20we=20do?= =?UTF-8?q?n't=20own=20=3D>=20a=20shared=20item=20is=20still=20in=20the=20?= =?UTF-8?q?sharers=20feed=20-=20cache=20only=20gets=20updated=20for=20curr?= =?UTF-8?q?ent=20users=20feeds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- js/tests/unit/controller/ContentControllerSpec.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'js') 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 },] }, }); -- cgit v1.2.3