summaryrefslogtreecommitdiffstats
path: root/js/tests/services/persistenceSpec.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/services/persistenceSpec.coffee')
-rw-r--r--js/tests/services/persistenceSpec.coffee13
1 files changed, 12 insertions, 1 deletions
diff --git a/js/tests/services/persistenceSpec.coffee b/js/tests/services/persistenceSpec.coffee
index 3fca95cc2..98bd96531 100644
--- a/js/tests/services/persistenceSpec.coffee
+++ b/js/tests/services/persistenceSpec.coffee
@@ -237,6 +237,17 @@ describe 'Persistence', ->
expect(@req.post).toHaveBeenCalledWith('news_feeds_create', params)
+ it 'should do a proper import google reader request', =>
+ params =
+ data:
+ json: {"some": "json"}
+
+ @Persistence.importGoogleReader(params.data.json)
+
+
+ expect(@req.post).toHaveBeenCalledWith('news_feeds_import_googlereader',
+ params)
+
###
FOLDER CONTROLLER
@@ -367,4 +378,4 @@ describe 'Persistence', ->
onFailure: jasmine.any(Function)
expect(@req.get).toHaveBeenCalledWith('news_usersettings_language',
- expected) \ No newline at end of file
+ expected)