Skip to content

Commit

Permalink
Correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Apr 23, 2024
1 parent 96c2fa4 commit 2bbfe69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports[`fetchArches > URL is set correctly 1`] = `
]
`;

exports[`fetchArches > URL is set correctly 2`] = `
exports[`fetchOses > URL is set correctly 1`] = `
[
{
"name": [
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/__tests__/fetchConstants.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('fetchArches', () => {
})
});

describe('fetchArches', () => {
describe('fetchOses', () => {
it('URL is set correctly', async () => {
const mockResponse = [mockOsesAPI()];

Expand Down
3 changes: 1 addition & 2 deletions src/hooks/fetchConstants.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { useEffect, useState } from 'react';
import axios from 'axios';

const baseUrl = 'https://staging-api.adoptium.net/v3';
//const baseUrl = 'https://api.adoptium.net/v3';
const baseUrl = 'https://api.adoptium.net/v3';

export function fetchOses(isVisible: boolean): OperatingSystem[] {

Expand Down

0 comments on commit 2bbfe69

Please sign in to comment.