Skip to content

Commit

Permalink
fix jest failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
radubrehar committed Jul 23, 2024
1 parent bacba77 commit da6eb65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ it('should work', () => {
it('query result from cache', async () => {
const client = new DataClient({
name: 'client',
cache: true,
});

await client
Expand Down Expand Up @@ -45,6 +46,7 @@ it('query result from cache', async () => {
it('query result from cache2', async () => {
const client = new DataClient({
name: 'client2',
cache: true,
});

// dont await
Expand Down Expand Up @@ -100,6 +102,7 @@ it('query result from cache2', async () => {
it('query result from cache3', async () => {
const client = new DataClient({
name: 'client3',
cache: true,
});

// wait for this before moving on
Expand Down Expand Up @@ -155,6 +158,7 @@ describe('DataClient', () => {
it('query result from cache4', async () => {
const client = new DataClient({
name: 'client4',
cache: true,
});

client
Expand Down
2 changes: 1 addition & 1 deletion source/src/components/DataSource/DataLoader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class DataLoader<
}

load = (
params: DataLoader.Params<
_params: DataLoader.Params<
T_DATA_TYPE,
T_FILTER_VALUE,
T_GROUP_BY_INFO,
Expand Down

0 comments on commit da6eb65

Please sign in to comment.