Skip to content

Commit

Permalink
add slug field in client side test mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham4401 committed Aug 1, 2024
1 parent 033d911 commit 2114bfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import userEvent from '@testing-library/user-event';
import { cleanup, renderWithProviders, screen } from 'app/mocks';
import { mockUserEndpoints } from 'app/mocks/handlers';
import { http, HttpResponse } from 'msw';
import { setupServer } from 'msw/node';
import React from 'react';
import '@testing-library/jest-dom';
import { HaztrakProfileResponse } from '~/store/userSlice/user.slice';
import { cleanup, renderWithProviders, screen } from 'app/mocks';
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest';
import { createMockRcrainfoSite } from '~/mocks/fixtures';
import { mockUserEndpoints } from 'app/mocks/handlers';
import { API_BASE_URL } from '~/mocks/handlers/mockSiteEndpoints';
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest';
import { HaztrakProfileResponse } from '~/store/userSlice/user.slice';
import { HandlerSearchForm } from './HandlerSearchForm';

const mockRcraSite1Id = 'VATEST111111111';
Expand All @@ -21,6 +21,7 @@ const mockProfile: HaztrakProfileResponse = {
sites: [],
org: {
name: 'my org',
slug: 'my-org',
rcrainfoIntegrated: true,
id: '1234',
},
Expand Down
1 change: 1 addition & 0 deletions client/app/mocks/fixtures/mockUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export function createMockOrg(overWrites?: Partial<Organization>): Organization
return {
name: 'mockOrg',
id: 'mockOrgId',
slug: 'mock-org',
rcrainfoIntegrated: true,
...overWrites,
};
Expand Down

0 comments on commit 2114bfb

Please sign in to comment.