Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
adhityamamallan committed Dec 13, 2024
1 parent bd52c85 commit 07bd04e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen, userEvent } from '@/test-utils/rtl';

import { type Props as PageFiltersToggleProps } from '@/components/page-filters/page-filters-toggle/page-filters-toggle.types';
import { mockDomainWorkflowsQueryParamsValues } from '@/views/domain-workflows/__fixtures__/domain-workflows-query-params';
import { mockDomainPageQueryParamsValues } from '@/views/domain-page/__fixtures__/domain-page-query-params';

import DomainWorkflowsBasicFilters from '../domain-workflows-basic-filters';

Expand Down Expand Up @@ -33,7 +33,7 @@ jest.mock('@/components/page-filters/hooks/use-page-filters', () =>
jest.fn(() => ({
resetAllFilters: mockResetAllFilters,
activeFiltersCount: mockActiveFiltersCount,
queryParams: mockDomainWorkflowsQueryParamsValues,
queryParams: mockDomainPageQueryParamsValues,
setQueryParams: mockSetQueryParams,
}))
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { type Props as LoaderProps } from '@/components/table/table-infinite-scr
import * as usePageQueryParamsModule from '@/hooks/use-page-query-params/use-page-query-params';
import { type ListWorkflowsResponse } from '@/route-handlers/list-workflows/list-workflows.types';
import type { Props as MSWMocksHandlersProps } from '@/test-utils/msw-mock-handlers/msw-mock-handlers.types';
import { mockDomainWorkflowsQueryParamsValues } from '@/views/domain-workflows/__fixtures__/domain-workflows-query-params';
import { mockDomainPageQueryParamsValues } from '@/views/domain-page/__fixtures__/domain-page-query-params';

import DomainWorkflowsBasicTable from '../domain-workflows-basic-table';

Expand Down Expand Up @@ -41,7 +41,7 @@ jest.mock('query-string', () => ({

const mockSetQueryParams = jest.fn();
jest.mock('@/hooks/use-page-query-params/use-page-query-params', () =>
jest.fn(() => [mockDomainWorkflowsQueryParamsValues, mockSetQueryParams])
jest.fn(() => [mockDomainPageQueryParamsValues, mockSetQueryParams])
);

describe(DomainWorkflowsBasicTable.name, () => {
Expand Down Expand Up @@ -133,7 +133,7 @@ describe(DomainWorkflowsBasicTable.name, () => {
it('calls only listOpen if Running status is selected', async () => {
jest.spyOn(usePageQueryParamsModule, 'default').mockReturnValue([
{
...mockDomainWorkflowsQueryParamsValues,
...mockDomainPageQueryParamsValues,
statusBasic: 'WORKFLOW_EXECUTION_CLOSE_STATUS_INVALID',
},
mockSetQueryParams,
Expand All @@ -157,7 +157,7 @@ describe(DomainWorkflowsBasicTable.name, () => {
it('calls only listClosed if a close status is selected', async () => {
jest.spyOn(usePageQueryParamsModule, 'default').mockReturnValue([
{
...mockDomainWorkflowsQueryParamsValues,
...mockDomainPageQueryParamsValues,
statusBasic: 'WORKFLOW_EXECUTION_CLOSE_STATUS_COMPLETED',
},
mockSetQueryParams,
Expand Down

0 comments on commit 07bd04e

Please sign in to comment.