Skip to content

Commit

Permalink
copyedit
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Dec 17, 2021
1 parent dacc2f3 commit 8bfca73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wrangler/src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jest.mock("../dialogs", () => {
* then an error is thrown.
*/
function mockConfirm(...expectations: { text: string; result: boolean }[]) {
// @ts-expect-error - we're mocking the implementation of a function
// but typescript doesn't know we've replaced confirm up there
// @ts-expect-error - we're mocking the implementation of confirm()
// but typescript doesn't know we've previously replaced confirm with a mock
confirm.mockImplementationOnce((text: string) => {
for (const { text: expectedText, result } of expectations) {
if (text === expectedText) {
Expand Down

0 comments on commit 8bfca73

Please sign in to comment.