Skip to content

Commit

Permalink
Fix new lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Sep 19, 2024
1 parent a2a2742 commit e8965c2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/integration/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Issuing a DELETE request', async () => {
let ok = false;
try {
await ketting.go().get();
} catch (e) {
} catch {
// we're expecting an exception
ok = true;
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Issuing a PATCH request', async () => {
try {
const errResource = await ketting.follow('error400');
await errResource.patch({data: {foo: 'bar'}});
} catch (e) {
} catch {
ok = true;
}
expect(ok).to.eql(true);
Expand Down
2 changes: 1 addition & 1 deletion test/integration/put.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Issuing a PUT request', async () => {
try {
const errResource = await ketting.follow('error400');
await errResource.put({data: {foo: 'bar'}});
} catch (e) {
} catch {
ok = true;
}
expect(ok).to.eql(true);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('Resource', () => {
let err = false;
try {
await res.postFollow({});
} catch (e) {
} catch {
err = true;
}
expect(err).to.eql(true);
Expand All @@ -62,7 +62,7 @@ describe('Resource', () => {
let err = false;
try {
await res.postFollow({});
} catch (e) {
} catch {
err = true;
}
expect(err).to.eql(true);
Expand Down
6 changes: 3 additions & 3 deletions test/unit/state/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ describe('HTML representor', () => {
let err = false;
try {
await htmlState.action('add-item2');
} catch (e) {
} catch {
err = true;
}
expect(err).to.equal(true);
Expand All @@ -169,7 +169,7 @@ describe('HTML representor', () => {
let err = false;
try {
await htmlState.action();
} catch (e) {
} catch {
err = true;
}
expect(err).to.equal(true);
Expand Down Expand Up @@ -241,7 +241,7 @@ describe('HTML representor', () => {
productCode: 'foo-bar',
quantity: 5
});
} catch (e) {
} catch {
err = true;
}
expect(err).to.equal(true);
Expand Down
6 changes: 3 additions & 3 deletions test/unit/state/siren.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ describe('Siren representor', () => {
let err = false;
try {
await siren.action('add-item');
} catch (e) {
} catch {
err = true;
}
expect(err).to.equal(true);
Expand All @@ -246,7 +246,7 @@ describe('Siren representor', () => {
let err = false;
try {
await siren.action();
} catch (e) {
} catch {
err = true;
}
expect(err).to.equal(true);
Expand Down Expand Up @@ -325,7 +325,7 @@ describe('Siren representor', () => {
productCode: 'foo-bar',
quantity: 5
});
} catch (e) {
} catch {
err = true;
}
expect(err).to.equal(true);
Expand Down

0 comments on commit e8965c2

Please sign in to comment.