Skip to content

Commit e0105c0

Browse files
committed
chore: fix release workflow again
1 parent b2e3546 commit e0105c0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/common/client/bugsplat-api-client/bugsplat-api-client.spec.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { BugSplatApiClient, Environment } from '@common';
2-
import { config } from '@spec/config';
32
import { createFakeResponseBody } from '@spec/fakes/common/response';
43

4+
const fakeBugSplatHost = 'https://fake.bugsplat.com';
5+
56
describe('BugSplatApiClient', () => {
67
const email = '[email protected]';
78
const password = 'password';
@@ -44,7 +45,7 @@ describe('BugSplatApiClient', () => {
4445
});
4546

4647
it('should call fetch with correct route', () => {
47-
expect((<any>client)._fetch).toHaveBeenCalledWith(`${config.host}${route}`, jasmine.anything());
48+
expect((<any>client)._fetch).toHaveBeenCalledWith(`${fakeBugSplatHost}${route}`, jasmine.anything());
4849
});
4950

5051
describe('when environment is Browser', () => {
@@ -94,7 +95,7 @@ describe('BugSplatApiClient', () => {
9495
beforeEach(async () => result = await client.login(email, password));
9596

9697
it('should call fetch with correct url', () => {
97-
expect((<any>client)._fetch).toHaveBeenCalledWith(`${config.host}/api/authenticatev3`, jasmine.anything());
98+
expect((<any>client)._fetch).toHaveBeenCalledWith(`${fakeBugSplatHost}/api/authenticatev3`, jasmine.anything());
9899
});
99100

100101
it('should append email, password and Login properties to formData', () => {
@@ -138,7 +139,7 @@ function createFakeBugSplatApiClient(
138139
responseBody,
139140
formData
140141
): BugSplatApiClient {
141-
const client = new BugSplatApiClient(config.host, environment);
142+
const client = new BugSplatApiClient(fakeBugSplatHost, environment);
142143
(<any>client)._fetch = jasmine.createSpy();
143144
(<any>client)._fetch.and.returnValue(responseBody);
144145
(<any>client)._createFormData = () => formData;

0 commit comments

Comments
 (0)