Skip to content

Commit c8624ec

Browse files
committed
chore: linter fixes
1 parent 77c33c5 commit c8624ec

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/__tests__/DefaultValues.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,7 @@ test('Add sort by status DESC', () => {
245245

246246
test('Add multiple sort criterion', () => {
247247
let api = new DrupalJsonApiParams();
248-
api
249-
.addSort('id', 'DESC')
250-
.addSort('uid')
251-
.addSort('status');
248+
api.addSort('id', 'DESC').addSort('uid').addSort('status');
252249
expect(api.getQueryString({ encode: false })).toBe('sort=-id,uid,status');
253250
});
254251

src/__tests__/PackUnpackObject.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test('Empty Default Values', () => {
1212
});
1313

1414
test('getDrupalJsonApiParams', () => {
15-
const getDrupalJsonApiParams = function(input: any = undefined) {
15+
const getDrupalJsonApiParams = function (input: any = undefined) {
1616
return new DrupalJsonApiParams().initialize(input);
1717
};
1818
// Defaults.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ export class DrupalJsonApiParams implements DrupalJsonApiParamsInterface {
448448
public initializeWithQueryObject(input: any) {
449449
this.clear();
450450
const keys = Object.keys(input);
451-
keys.forEach(key => {
451+
keys.forEach((key) => {
452452
switch (key) {
453453
case 'sort':
454454
if (input.sort.length) {

0 commit comments

Comments
 (0)