diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-19 12:31:54 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-19 12:31:54 +0200 |
commit | 67e00e798d85d897e4793077aa14bcb4fb3d1765 (patch) | |
tree | 1a808c1a9a2330ffc5f201bcf62fb546cc658a7d /js/tests/services/persistenceSpec.coffee | |
parent | ed3990b46bcb048963bbfcb567656e82d8686796 (diff) |
added javascript for uploading google reader json files
Diffstat (limited to 'js/tests/services/persistenceSpec.coffee')
-rw-r--r-- | js/tests/services/persistenceSpec.coffee | 13 |
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) |