summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/service/FeedResourceSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/service/FeedResourceSpec.js')
-rw-r--r--js/tests/unit/service/FeedResourceSpec.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/js/tests/unit/service/FeedResourceSpec.js b/js/tests/unit/service/FeedResourceSpec.js
index 15c237929..5c900de3f 100644
--- a/js/tests/unit/service/FeedResourceSpec.js
+++ b/js/tests/unit/service/FeedResourceSpec.js
@@ -302,6 +302,19 @@ describe('FeedResource', function () {
}));
+ it ('should set the feed pinning', inject(function (FeedResource) {
+ http.expectPOST('base/feeds/3/pinned', {
+ isPinned: true
+ }).respond(200, {});
+
+ FeedResource.setPinned(3, true);
+
+ http.flush();
+
+ expect(FeedResource.getById(3).pinned).toBe(true);
+ }));
+
+
it ('should toggle full text', inject(function (FeedResource) {
http.expectPOST('base/feeds/3/fulltext', {
fullTextEnabled: true
@@ -312,7 +325,6 @@ describe('FeedResource', function () {
expect(FeedResource.getById(3).fullTextEnabled).toBe(true);
http.flush();
-
}));
});