Skip to content
Permalink
Browse files

https in tests too…

  • Loading branch information...
Daniel Lerch
Daniel Lerch committed May 22, 2018
1 parent 088da1c commit 73ea05dbe746fe38edacad41b83517ff9586912d
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/TaskListSpec.js
@@ -111,7 +111,7 @@ describe("TaskList", function () {
});

it('calls getJSON with the correct URL', function () {
expect($.getJSON).toHaveBeenCalledWith("http://zhaw.herokuapp.com/task_lists/testlist", jasmine.any(Function));
expect($.getJSON).toHaveBeenCalledWith("https://zhaw.herokuapp.com/task_lists/testlist", jasmine.any(Function));
});

it("stores the id of the tasklist", function () {
@@ -163,7 +163,7 @@ describe("TaskList", function () {
});

it('calls post with the correct URL', function () {
expect($.post).toHaveBeenCalledWith("http://zhaw.herokuapp.com/task_lists/", jasmine.any(String), jasmine.any(Function));
expect($.post).toHaveBeenCalledWith("https://zhaw.herokuapp.com/task_lists/", jasmine.any(String), jasmine.any(Function));
});

it("consumes the id received by the server", function () {
@@ -203,7 +203,7 @@ describe("TaskList", function () {
});

it('calls post with the correct URL', function () {
expect($.post).toHaveBeenCalledWith("http://zhaw.herokuapp.com/task_lists/0815", jasmine.any(String), jasmine.any(Function));
expect($.post).toHaveBeenCalledWith("https://zhaw.herokuapp.com/task_lists/0815", jasmine.any(String), jasmine.any(Function));
});

it("consumes the id received by the server", function () {

0 comments on commit 73ea05d

Please sign in to comment.
You can’t perform that action at this time.