Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 5a40dab

Browse files
author
vikasrohit
committed
Merge pull request #589 from appirio-tech/feature/sup-2481-external-weblink-support-ut-fix
SUP-2481, intergrate-web-links-api
2 parents 2c82ba2 + e1c4682 commit 5a40dab

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/services/externalAccounts.service.spec.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('ExternalAccount Service', function() {
55
var mockUserLinksData = mockData.getMockLinkedExternalAccounts();
66
var mockAuth0Profile = mockData.getMockAuth0Profile();
77
var mockProfile = mockData.getMockProfile();
8-
var apiUrl;
8+
var apiUrl, authApiUrl;
99
var auth0, userService;
1010
var profileGet, profilePost, profileDelete;
1111

@@ -19,6 +19,7 @@ describe('ExternalAccount Service', function() {
1919
});
2020

2121
apiUrl = CONSTANTS.API_URL;
22+
authApiUrl = CONSTANTS.AUTH_API_URL;
2223
service = ExternalAccountService;
2324
auth0 = auth;
2425
userService = UserService;
@@ -47,13 +48,13 @@ describe('ExternalAccount Service', function() {
4748
.when('GET', apiUrl + '/members/test1/externalAccounts/')
4849
.respond(200, {result: {content: mockAccountsData}});
4950

50-
profileGet = $httpBackend.when('GET', apiUrl + '/users/111/?fields=profiles');
51+
profileGet = $httpBackend.when('GET', authApiUrl + '/users/111/?fields=profiles');
5152
profileGet.respond(200, {result: {content: mockUserLinksData}});
5253

53-
profilePost = $httpBackend.when('POST', apiUrl + '/users/111/profiles/');
54+
profilePost = $httpBackend.when('POST', authApiUrl + '/users/111/profiles/');
5455
profilePost.respond(200, {result: {content: mockProfile}});
5556

56-
profileDelete = $httpBackend.when('DELETE', apiUrl + '/users/111/profiles/stackoverflow/');
57+
profileDelete = $httpBackend.when('DELETE', authApiUrl + '/users/111/profiles/stackoverflow/');
5758
profileDelete.respond(200, {result: {content: mockProfile}});
5859

5960
});

0 commit comments

Comments
 (0)