Skip to content

Commit

Permalink
Correct two words path by using an underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Apr 23, 2024
1 parent 2bbfe69 commit dc0ee21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/__tests__/fetchConstants.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('fetchOses', () => {
}, { interval: 1 });
expect(spy).toHaveBeenCalledTimes(1)
expect(spy).toHaveBeenCalledWith(
"https://api.adoptium.net/v3/info/available/operating-systems"
"https://api.adoptium.net/v3/info/available/operating_systems"
);
expect(result.current).toMatchSnapshot()
})
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/fetchConstants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function fetchOses(isVisible: boolean): OperatingSystem[] {
useEffect(() => {
if (isVisible) {
(async () => {
const url = `${baseUrl}/info/available/operating-systems`;
const url = `${baseUrl}/info/available/operating_systems`;

axios.get(url)
.then(function (response) {
Expand Down

0 comments on commit dc0ee21

Please sign in to comment.