Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable syfoperson call #386

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/data/personregisterHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const usePersonregisterQuery = () => {
return useQuery({
queryKey: personregisterQueryKeys.personregister(aktivEnhet),
queryFn: fetchPersonregister,
enabled: !!aktivEnhet && fnrForPersonerListe.length > 0,
enabled: false,
onError: (error) => {
if (error instanceof ApiErrorException && error.code === 403) {
throwError(error);
Expand Down
2 changes: 1 addition & 1 deletion test/query/personregisterHooks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { expect } from 'chai';
describe('personregisterHooks tests', () => {
const queryClient = new QueryClient();

it('loads personregister correctly', async () => {
xit('loads personregister correctly', async () => {
Copy link
Collaborator

@JMLindseth JMLindseth Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gir dette en warning eller noe 1 skipped? Det er fare for at den bare blir sånn for alltid, siden den aldri vil feile 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testen vil stå som pending under kjøring av testene så forhåpentligvis plukker vi den opp 😅

stubModiaContext();
stubPersonoversikt();
stubPersonregister();
Expand Down