Skip to content

Commit

Permalink
Run prettier (#23752)
Browse files Browse the repository at this point in the history
Prettier
  • Loading branch information
salazarm authored Aug 20, 2024
1 parent 6d7888e commit 0031346
Showing 1 changed file with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ describe('useQueryPersistedFilterState', () => {

it('should initialize with decoded state from query string', () => {
const {result} = renderHook(
() => useQueryPersistedFilterState<{filterA: string[]; filterB: string[]}>(['filterA', 'filterB']),
() =>
useQueryPersistedFilterState<{filterA: string[]; filterB: string[]}>([
'filterA',
'filterB',
]),
{
wrapper: wrapper({
initialEntries: [
Expand All @@ -41,7 +45,11 @@ describe('useQueryPersistedFilterState', () => {

it('should encode the state correctly when setting a value', () => {
const {result} = renderHook(
() => useQueryPersistedFilterState<{filterA: string[]; filterB: string[]}>(['filterA', 'filterB']),
() =>
useQueryPersistedFilterState<{filterA: string[]; filterB: string[]}>([
'filterA',
'filterB',
]),
{wrapper: wrapper()},
);

Expand All @@ -54,7 +62,11 @@ describe('useQueryPersistedFilterState', () => {

it('should create setters dynamically for each filter field', () => {
const {result} = renderHook(
() => useQueryPersistedFilterState<{filterA: string[]; filterB: string[]}>(['filterA', 'filterB']),
() =>
useQueryPersistedFilterState<{filterA: string[]; filterB: string[]}>([
'filterA',
'filterB',
]),
{wrapper: wrapper()},
);

Expand All @@ -73,10 +85,10 @@ describe('useQueryPersistedFilterState', () => {
it('should handle undefined or empty values correctly', () => {
const {result} = renderHook(
() =>
useQueryPersistedFilterState<{filterA: string[] | undefined; filterB: string[] | undefined}>([
'filterA',
'filterB',
]),
useQueryPersistedFilterState<{
filterA: string[] | undefined;
filterB: string[] | undefined;
}>(['filterA', 'filterB']),
{wrapper: wrapper()},
);

Expand Down

1 comment on commit 0031346

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-3aa49jwa7-elementl.vercel.app

Built with commit 0031346.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.