Skip to content

Commit 604c018

Browse files
committed
Remove unintended changes
1 parent 68ed7a3 commit 604c018

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/base/resource_collection_client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import type { PaginatedResponse, PaginationOptions , parseDateFields, pluckData } from '../utils';
1+
import type { PaginatedResponse, PaginationOptions } from '../utils';
2+
import { parseDateFields, pluckData } from '../utils';
23
import { ApiClient } from './api_client';
34

45
/**

src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ export interface PaginatedList<Data> {
252252
total: number;
253253
/** Count of dataset entries returned in this set. */
254254
count: number;
255-
/** Should the results be in descending order. */
256-
desc: boolean;
257-
/** Position of the first returned entry. */
255+
/** Position of the first returned entry in the dataset. */
258256
offset: number;
259257
/** Maximum number of dataset entries requested. */
260258
limit: number;
259+
/** Should the results be in descending order. */
260+
desc: boolean;
261261
/** Dataset entries based on chosen format parameter. */
262262
items: Data[];
263263
}

test/store.test.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,16 @@ describe('Store', () => {
4141
page.close().catch(() => {});
4242
});
4343

44-
const opts = {
45-
limit: 5,
46-
offset: 3,
47-
search: 'my search',
48-
sortBy: 'my sort',
49-
category: 'my category',
50-
username: 'my username',
51-
pricingModel: 'my pricing model',
52-
};
53-
5444
test('list() works', async () => {
45+
const opts = {
46+
limit: 5,
47+
offset: 3,
48+
search: 'my search',
49+
sortBy: 'my sort',
50+
category: 'my category',
51+
username: 'my username',
52+
pricingModel: 'my pricing model',
53+
};
5554
const res: any = client && (await client.store().list(opts));
5655
expect(res.id).toEqual('store-list');
5756
validateRequest(opts);

0 commit comments

Comments
 (0)