From 174cef4f4bab08740cb85c3c2d507b91bb7aa092 Mon Sep 17 00:00:00 2001 From: Gerhard Janse van Rensburg Date: Wed, 22 Jan 2020 13:29:30 +0200 Subject: [PATCH] fixed unit test --- test/spec/services/AuthenticationServiceSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/services/AuthenticationServiceSpec.js b/test/spec/services/AuthenticationServiceSpec.js index 1818f167..ec0d9f86 100644 --- a/test/spec/services/AuthenticationServiceSpec.js +++ b/test/spec/services/AuthenticationServiceSpec.js @@ -21,7 +21,7 @@ describe("AuthenticationService", function () { }); it("should pass the correct parameters to the post method", function () { - expect(httpService.post).toHaveBeenCalledWith("/fineract-provider/api/v1/authentication?username=test_username&password=test_password"); + expect(httpService.post).toHaveBeenCalledWith("/fineract-provider/api/v1/authentication", { "username" : "test_username", "password" : "test_password" }); }); it("should broadcast 'UserAuthenticationStartEvent'", function () {