Skip to content

Commit 41cdf93

Browse files
author
Mat Jones
committed
code cleanup
1 parent e292e3f commit 41cdf93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utilities/do-try.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe("do-try.ts", () => {
7676
it("When no errors occur, then catch handler is never called", async () => {
7777
// Arrange
7878
const catchHandler = jest.fn();
79-
const workload = async () => jest.fn()();
79+
const workload = async () => {};
8080

8181
// Act
8282
await Do.try(workload)
@@ -90,7 +90,7 @@ describe("do-try.ts", () => {
9090
it("When no errors occur, then finally handler is still called", async () => {
9191
// Arrange
9292
const finallyHandler = jest.fn();
93-
const workload = async () => jest.fn()();
93+
const workload = async () => {};
9494

9595
// Act
9696
await Do.try(workload)

0 commit comments

Comments
 (0)