Skip to content

Commit

Permalink
chore(deps-dev): removed additional reference of CancelablePromise
Browse files Browse the repository at this point in the history
  • Loading branch information
andreszorro committed Nov 19, 2024
1 parent cdb0f4a commit f7a67f9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/utils/generator.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { describe, expect, mock, test } from "bun:test";
import { CancelablePromise } from "@inquirer/type";
import templates from "../templates/bundle";
import type { AddAction } from "./actions";
import type { Generator } from "./generator";
Expand All @@ -9,8 +8,7 @@ describe("generator", () => {
describe("createGenerator", () => {
test("should create generator and execute actions", async () => {
const prompt = mock(
() =>
new CancelablePromise<string>((resolve) => resolve("123")),
() => new Promise<string>((resolve) => resolve("123")),
);
const execute = mock();
const questions = {
Expand Down Expand Up @@ -42,8 +40,7 @@ describe("generator", () => {

test("should create generator from function questions", async () => {
const prompt = mock(
() =>
new CancelablePromise<string>((resolve) => resolve("123")),
() => new Promise<string>((resolve) => resolve("123")),
);
const execute = mock();
const questions = async () => {
Expand Down

0 comments on commit f7a67f9

Please sign in to comment.