summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-19 13:43:16 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-19 13:43:16 +0100
commit1975cc06da84cc81cb0c6790a1f1f97e7eb9a087 (patch)
tree248dcb50ec05af7ac43aacddb502176d9b351c92 /js
parent6437523e22f452d3c542c5d25b715733cdc77048 (diff)
fix unit tests
Diffstat (limited to 'js')
-rw-r--r--js/tests/unit/service/FeedResourceSpec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/tests/unit/service/FeedResourceSpec.js b/js/tests/unit/service/FeedResourceSpec.js
index 3bad50f4f..5f0d3c25a 100644
--- a/js/tests/unit/service/FeedResourceSpec.js
+++ b/js/tests/unit/service/FeedResourceSpec.js
@@ -151,11 +151,11 @@ describe('FeedResource', function () {
}));
- it ('should create a feed and prepend http if not given', inject(function (
+ it ('should create a feed and prepend https if not given', inject(function (
FeedResource) {
http.expectPOST('base/feeds', {
parentFolderId: 5,
- url: 'http://hey',
+ url: 'https://hey',
title: 'abc'
}).respond(200, {});
@@ -163,7 +163,7 @@ describe('FeedResource', function () {
http.flush();
- expect(FeedResource.get('http://hey').folderId).toBe(5);
+ expect(FeedResource.get('https://hey').folderId).toBe(5);
}));
@@ -201,15 +201,15 @@ describe('FeedResource', function () {
it ('should create a feed with no folder', inject(function (FeedResource) {
http.expectPOST('base/feeds', {
parentFolderId: 0,
- url: 'http://hey',
+ url: 'https://hey',
}).respond(200, {});
FeedResource.create('hey', undefined);
- expect(FeedResource.get('http://hey').title).toBe('http://hey');
+ expect(FeedResource.get('https://hey').title).toBe('https://hey');
http.flush();
- expect(FeedResource.get('http://hey').folderId).toBe(0);
+ expect(FeedResource.get('https://hey').folderId).toBe(0);
}));