Skip to content

Commit

Permalink
test(cli/unstable): clean up promptSelect() tests (denoland#6253)
Browse files Browse the repository at this point in the history
  • Loading branch information
timreichen authored Dec 13, 2024
1 parent 283cf34 commit cc9a7c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli/unstable_prompt_select_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { restore, stub } from "@std/testing/mock";

const encoder = new TextEncoder();
const decoder = new TextDecoder();

Deno.test("promptSelect() handles enter", () => {
Deno.test("promptSelect() handles CR", () => {
stub(Deno.stdin, "setRaw");

const expectedOutput = [
Expand Down Expand Up @@ -187,7 +186,7 @@ Deno.test("promptSelect() handles arrow up", () => {
restore();
});

Deno.test("promptSelect() handles up index overflow", () => {
Deno.test("promptSelect() handles index underflow", () => {
stub(Deno.stdin, "setRaw");

const expectedOutput = [
Expand Down Expand Up @@ -245,7 +244,7 @@ Deno.test("promptSelect() handles up index overflow", () => {
restore();
});

Deno.test("promptSelect() handles down index overflow", () => {
Deno.test("promptSelect() handles index overflow", () => {
stub(Deno.stdin, "setRaw");

const expectedOutput = [
Expand Down

0 comments on commit cc9a7c0

Please sign in to comment.