Skip to content

Commit 36456f1

Browse files
committed
Fix jest mock
1 parent 711c762 commit 36456f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lambdas/functions/control-plane/src/pool/pool.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ beforeEach(() => {
170170
describe('Test simple pool.', () => {
171171
describe('With GitHub Cloud', () => {
172172
beforeEach(() => {
173-
getGitHubEnterpriseApiUrl.mockReturnValue({
173+
(getGitHubEnterpriseApiUrl as jest.Mock).mockReturnValue({
174174
ghesApiUrl: '',
175175
ghesBaseUrl: '',
176176
});
@@ -251,7 +251,7 @@ describe('Test simple pool.', () => {
251251

252252
describe('With GHES', () => {
253253
beforeEach(() => {
254-
getGitHubEnterpriseApiUrl.mockReturnValue({
254+
(getGitHubEnterpriseApiUrl as jest.Mock).mockReturnValue({
255255
ghesApiUrl: 'https://api.github.enterprise.something',
256256
ghesBaseUrl: 'https://github.enterprise.something',
257257
});
@@ -270,7 +270,7 @@ describe('Test simple pool.', () => {
270270

271271
describe('With Github Data Residency', () => {
272272
beforeEach(() => {
273-
getGitHubEnterpriseApiUrl.mockReturnValue({
273+
(getGitHubEnterpriseApiUrl as jest.Mock).mockReturnValue({
274274
ghesApiUrl: 'https://api.companyname.ghe.com',
275275
ghesBaseUrl: 'https://companyname.ghe.com',
276276
});

0 commit comments

Comments
 (0)