Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fippli committed Apr 17, 2020
1 parent 35fedc7 commit f3b0f78
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test("Synchronous function (dev):", () => {
});
});

test("Synchronous function (dev):", () => {
test("Synchronous function (prod):", () => {
return timeItProd(
syncFunc,
"Test 2"
Expand All @@ -52,7 +52,7 @@ test("Asynchronous function (dev):", () => {
});
});

test("Asynchronous function (dev):", () => {
test("Asynchronous function (prod):", () => {
return timeItProd(
asyncFunc,
"Test 4"
Expand All @@ -64,6 +64,9 @@ test("Asynchronous function (dev):", () => {
//
// Failures
//
test("Throw error", async () => {
await expect(timeItProd(brokenFunc, "Test 5")()).rejects.toThrow();
test("Throw error (dev)", async () => {
await expect(timeItDev(brokenFunc, "Test 5")()).rejects.toThrow();
});
test("Throw error (prod", async () => {
await expect(timeItProd(brokenFunc, "Test 6")()).rejects.toThrow();
});

0 comments on commit f3b0f78

Please sign in to comment.