Skip to content

Commit

Permalink
Ajust final paths for new types (Architectures & OperatingSystems)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Apr 29, 2024
1 parent 7fcde68 commit 313af7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hooks/__tests__/fetchConstants.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('fetchArches', () => {
}, { interval: 1 });
expect(spy).toHaveBeenCalledTimes(1)
expect(spy).toHaveBeenCalledWith(
"https://api.adoptium.net/v3/info/available/architectures"
"https://api.adoptium.net/v3/types/architectures"
);
expect(result.current).toMatchSnapshot()
})
Expand Down 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/types/operating_systems"
);
expect(result.current).toMatchSnapshot()
})
Expand Down
4 changes: 2 additions & 2 deletions 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}/types/operating_systems`;

axios.get(url)
.then(function (response) {
Expand Down Expand Up @@ -38,7 +38,7 @@ export function fetchArches(isVisible: boolean): Architecture[] {
useEffect(() => {
if (isVisible) {
(async () => {
const url = `${baseUrl}/info/available/architectures`;
const url = `${baseUrl}/types/architectures`;

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

0 comments on commit 313af7d

Please sign in to comment.