Skip to content

Commit

Permalink
adjusted to new qs lib
Browse files Browse the repository at this point in the history
  • Loading branch information
scheiblr committed Apr 9, 2023
1 parent f88d5cc commit 2c11904
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/dataProvider/basic.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import qs from 'querystring';
import { enc } from '../urlBuilder/helper';
import { makeTestFromCase, Case } from './helper';

Expand All @@ -12,7 +13,7 @@ const cases: Case[] = [
filter: {},
meta: {},
},
expectedUrl: '/posts?order=title.desc&offset=0&limit=10',
expectedUrl: '/posts?offset=0&limit=10&order=title.desc',
expectedOptions: {
headers: {
accept: 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion tests/dataProvider/getList.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('getList specific', () => {
},
filter: {},
},
expectedUrl: `/posts?order=id.asc&offset=0&limit=10`,
expectedUrl: `/posts?offset=0&limit=10&order=id.asc`,
expectedOptions: {
headers: {
accept: 'application/json',
Expand Down

0 comments on commit 2c11904

Please sign in to comment.