Skip to content

Commit eec6547

Browse files
committed
feat: Update ApiService base URL in tests to use production endpoint
1 parent 5a7c2eb commit eec6547

8 files changed

+8
-8
lines changed

packages/database/tests/mix-database-data-rest-client-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('MixDatabaseDataRestClientService', () => {
66
let clientService: MixDatabaseDataRestClientService;
77

88
beforeEach(() => {
9-
api = new ApiService({ apiBaseUrl: 'http://localhost/api/' });
9+
api = new ApiService({ apiBaseUrl: 'https://mixcore.net' });
1010
clientService = new MixDatabaseDataRestClientService(api);
1111
});
1212

packages/database/tests/mix-database-data-rest-portal-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('MixDatabaseDataRestPortalService', () => {
66
let portalService: MixDatabaseDataRestPortalService;
77

88
beforeEach(() => {
9-
api = new ApiService({ apiBaseUrl: 'http://localhost/api/' });
9+
api = new ApiService({ apiBaseUrl: 'https://mixcore.net' });
1010
portalService = new MixDatabaseDataRestPortalService(api);
1111
});
1212

packages/database/tests/mix-database-data-value-rest-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('MixDatabaseDataValueRestService', () => {
66
let valueService: MixDatabaseDataValueRestService;
77

88
beforeEach(() => {
9-
api = new ApiService({ apiBaseUrl: 'http://localhost/api/' });
9+
api = new ApiService({ apiBaseUrl: 'https://mixcore.net' });
1010
valueService = new MixDatabaseDataValueRestService(api);
1111
});
1212

packages/database/tests/mix-database-rest-portal-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('MixDatabaseRestPortalService', () => {
66
let dbService: MixDatabaseRestPortalService;
77

88
beforeEach(() => {
9-
api = new ApiService({ apiBaseUrl: 'http://localhost/api/' });
9+
api = new ApiService({ apiBaseUrl: 'https://mixcore.net' });
1010
dbService = new MixDatabaseRestPortalService(api);
1111
});
1212

packages/database/tests/module-data-rest-mvc-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('ModuleDataRestMvcService', () => {
66
let mvcService: ModuleDataRestMvcService;
77

88
beforeEach(() => {
9-
api = new ApiService({ apiBaseUrl: 'http://localhost/api/' });
9+
api = new ApiService({ apiBaseUrl: 'https://mixcore.net' });
1010
mvcService = new ModuleDataRestMvcService(api);
1111
});
1212

packages/database/tests/related-attribute-data-rest-form-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ApiService } from '@mixcore/api';
33

44
describe('RelatedAttributeDataRestFormService', () => {
55
it('should instantiate with correct endpoint', () => {
6-
const api = new ApiService({ apiBaseUrl: 'http://localhost/api/' });
6+
const api = new ApiService({ apiBaseUrl: 'https://mixcore.net' });
77
const service = new RelatedAttributeDataRestFormService(api);
88
// @ts-expect-error endpoint is protected/private in base, this is a placeholder for real test
99
expect(service.endpoint).toBe('mix-database-data-association/form');

packages/database/tests/related-attribute-data-rest-portal-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ApiService } from '@mixcore/api';
33

44
describe('RelatedAttributeDataRestPortalService', () => {
55
it('should instantiate with correct endpoint', () => {
6-
const api = new ApiService({ apiBaseUrl: 'http://localhost/api/' });
6+
const api = new ApiService({ apiBaseUrl: 'https://mixcore.net' });
77
const service = new RelatedAttributeDataRestPortalService(api);
88
// @ts-expect-error endpoint is protected/private in base, this is a placeholder for real test
99
expect(service.endpoint).toBe('mix-database-data-association/portal');

packages/database/tests/related-attribute-set-rest-portal-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ApiService } from '@mixcore/api';
33

44
describe('RelatedAttributeSetRestPortalService', () => {
55
it('should instantiate with correct endpoint', () => {
6-
const api = new ApiService({ apiBaseUrl: 'http://localhost/api/' });
6+
const api = new ApiService({ apiBaseUrl: 'https://mixcore.net' });
77
const service = new RelatedAttributeSetRestPortalService(api);
88
// @ts-expect-error endpoint is protected/private in base, this is a placeholder for real test
99
expect(service.endpoint).toBe('related-mix-database/portal');

0 commit comments

Comments
 (0)