Skip to content

Commit f40befe

Browse files
committed
updated unit test client to go through CDN
1 parent bdccd05 commit f40befe

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@agility/content-fetch",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "JavaScript library for the Agility Fetch API (node and browser)",
55
"main": "dist/agility-content-fetch.node.js",
66
"scripts": {

test/apiClients.config.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import agility from '../src/content-fetch'
22

3-
// Agility Instance = 'Headless Integration Testing'
3+
// Agility Instance = 'Headless Integration Testing' [Dev]
44
const instanceID = 'c741222b-1080-45f6-9a7f-982381c5a485';
55
const accessTokenFetch = 'UnitTestsFetch.2ace650991363fbcffa6776d411d1b0d616b8e3424ce842b81cba7af0039197e';
66
const accessTokenPreview = 'UnitTestsPreview.69e6bca345ced0b7ca5ab358b351ea5c870790a5945c25d749a865332906b124';
77

88
function createApiClient() {
99
var api = agility.getApi({
1010
instanceID: instanceID,
11-
accessToken: accessTokenFetch,
12-
baseUrl: 'https://agility-fetch-api-dev.azurewebsites.net'
11+
accessToken: accessTokenFetch
1312
});
1413
return api;
1514
}
@@ -20,8 +19,7 @@ function createCachedApiClient() {
2019
accessToken: accessTokenFetch,
2120
caching: {
2221
maxAge: 5 * 60 * 1000 //==5mins
23-
},
24-
baseUrl: 'https://agility-fetch-api-dev.azurewebsites.net'
22+
}
2523
});
2624
return api;
2725
}
@@ -30,8 +28,7 @@ function createPreviewApiClient() {
3028
var api = agility.getApi({
3129
instanceID: instanceID,
3230
accessToken: accessTokenPreview,
33-
isPreview: true,
34-
baseUrl: 'https://agility-fetch-api-dev.azurewebsites.net'
31+
isPreview: true
3532
});
3633
return api;
3734
}

0 commit comments

Comments
 (0)