Skip to content

Commit

Permalink
Remove undefined fail call from tests (#1202)
Browse files Browse the repository at this point in the history
Removes `fail` calls from tests, to use plain promise rejections instead.
  • Loading branch information
hectorgomezv authored Feb 26, 2024
1 parent b701175 commit 08181bf
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 63 deletions.
6 changes: 3 additions & 3 deletions src/routes/owners/owners.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ describe('Owners Controller (Unit)', () => {
}

default: {
fail(`Unexpected URL: ${url}`);
return Promise.reject(`No matching rule for url: ${url}`);
}
}
});
Expand All @@ -265,7 +265,7 @@ describe('Owners Controller (Unit)', () => {
);
return Promise.reject(error);
}
fail(`Unexpected URL: ${url}`);
return Promise.reject(`No matching rule for url: ${url}`);
});

await request(app.getHttpServer())
Expand Down Expand Up @@ -322,7 +322,7 @@ describe('Owners Controller (Unit)', () => {
}

default: {
fail(`Unexpected URL: ${url}`);
return Promise.reject(`No matching rule for url: ${url}`);
}
}
});
Expand Down
Loading

0 comments on commit 08181bf

Please sign in to comment.