Skip to content

Commit 428b357

Browse files
committed
fix: update SkillLens API URL in main.ts and corresponding test
- Changed the SkillLens API URL from the original endpoint to a new Replit URL in main.ts. - Updated the test to reflect the new API URL, ensuring that the mock fetch call aligns with the change.
1 parent 9dacc09 commit 428b357

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

__tests__/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ describe('main.ts', () => {
298298
await run()
299299

300300
expect(mockFetch).toHaveBeenCalledWith(
301-
'https://api.skilllens.dev/v1/recommendations',
301+
'https://skill-lens-replit2142.replit.app/v1/recommendations',
302302
expect.objectContaining({
303303
method: 'POST',
304304
headers: expect.objectContaining({

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import * as core from '@actions/core'
22
import * as github from '@actions/github'
33

4-
const SKILLLENS_API_URL = 'https://api.skilllens.dev/v1/recommendations'
4+
const SKILLLENS_API_URL =
5+
'https://skill-lens-replit2142.replit.app/v1/recommendations'
56

67
let debugEnabled = false
78

0 commit comments

Comments
 (0)