Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Oct 3, 2023
1 parent 90ac6d8 commit c30348d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/tokens/Tokens.pw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React from 'react';
import * as tokens from 'mocks/tokens/tokenInfo';
import TestApp from 'playwright/TestApp';
import buildApiUrl from 'playwright/utils/buildApiUrl';
import type { QueryWithPagesResult } from 'ui/shared/pagination/useQueryWithPages';

import Tokens from './Tokens';

Expand Down Expand Up @@ -32,7 +33,12 @@ test('base view +@mobile +@dark-mode', async({ mount, page }) => {
const component = await mount(
<TestApp>
<Box h={{ base: '134px', lg: 6 }}/>
<Tokens/>
<Tokens
query={{ items: [], next_page_params: null } as unknown as QueryWithPagesResult<'tokens'> | QueryWithPagesResult<'tokens_bridged'>}
// eslint-disable-next-line react/jsx-no-bind
onSortChange={ () => {} }
sort={ undefined }
hasActiveFilters={ false }/>
</TestApp>,
);

Expand Down

0 comments on commit c30348d

Please sign in to comment.