From 1975cc06da84cc81cb0c6790a1f1f97e7eb9a087 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 19 Dec 2014 13:43:16 +0100 Subject: fix unit tests --- js/tests/unit/service/FeedResourceSpec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js') 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); })); -- cgit v1.2.3