Skip to content

Commit

Permalink
Updating tests just to see green
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Nov 21, 2023
1 parent 5803939 commit a59b454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/core-data/src/queried-data/test/get-query-parts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import { getQueryParts } from '../get-query-parts';

describe( 'getQueryParts', () => {
it( 'parses out pagination data', () => {
it( 'parses out pagination data and adds to returned object', () => {
const parts = getQueryParts( { page: 2, per_page: 2 } );

expect( parts ).toEqual( {
context: 'default',
page: 2,
perPage: 2,
stableKey: '',
stableKey: 'per_page=2',
fields: null,
include: null,
} );
Expand Down Expand Up @@ -71,7 +71,7 @@ describe( 'getQueryParts', () => {
context: 'default',
page: 1,
perPage: 10,
stableKey: 'b=2',
stableKey: 'b=2&per_page=10',
fields: null,
include: null,
} );
Expand All @@ -84,7 +84,7 @@ describe( 'getQueryParts', () => {
context: 'default',
page: 1,
perPage: -1,
stableKey: 'b=2',
stableKey: 'b=2&per_page=-1',
fields: null,
include: null,
} );
Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/queried-data/test/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ describe( 'reducer', () => {
default: { 1: true },
},
queries: {
default: { 's=a': { itemIds: [ 1 ] } },
default: { 'per_page=3&s=a': { itemIds: [ 1 ] } },
},
} );
} );
Expand Down

0 comments on commit a59b454

Please sign in to comment.