Skip to content

Commit

Permalink
fix(THEEDGE-3764): fixes LoadingCard component (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldjebran authored Dec 14, 2023
1 parent aff72b5 commit d9c6f62
Show file tree
Hide file tree
Showing 10 changed files with 200 additions and 253 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1311,11 +1311,10 @@ exports[`BiosCard should render extra 1`] = `
value="1 tests"
>
<Link
to="./undefined"
to="localhost:3000/example/path/undefined"
>
<a
href="/undefined"
onClick={[Function]}
href="localhost:3000/example/path/undefined"
>
1 tests
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2839,11 +2839,10 @@ exports[`CollectionCard should render extra 1`] = `
value="1 tests"
>
<Link
to="./undefined"
to="localhost:3000/example/path/undefined"
>
<a
href="/undefined"
onClick={[Function]}
href="localhost:3000/example/path/undefined"
>
1 tests
</a>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jest.mock(
jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),
useLocation: () => location,
useParams: jest.fn(() => ({ modalId: 'running_processes' })),
}));

const location = {};
Expand Down Expand Up @@ -178,7 +177,7 @@ describe('GeneralInformation', () => {

it('should open modal', () => {
const store = mockStore(initialState);

location.pathname = 'localhost:3000/example/running_processes';
const wrapper = mount(
<MemoryRouter>
<Provider store={store}>
Expand All @@ -199,6 +198,7 @@ describe('GeneralInformation', () => {

it('should open modal', () => {
const store = mockStore(initialState);
location.pathname = 'localhost:3000/example/running_processes';
const wrapper = mount(
<MemoryRouter>
<Provider store={store}>
Expand Down
Loading

0 comments on commit d9c6f62

Please sign in to comment.