summaryrefslogtreecommitdiff
path: root/cli/tests/066_prompt.ts
diff options
context:
space:
mode:
authorSander Hahn <sanderhahn@gmail.com>2020-10-29 18:35:58 +0100
committerGitHub <noreply@github.com>2020-10-29 18:35:58 +0100
commit1854c6f73be9d4439807911ce9cba1125af93dd4 (patch)
tree7c428c5a82bfb6982d10424fa395f14a678125d2 /cli/tests/066_prompt.ts
parent8d99adb6c481d1450b4b01dba5d7a193c51d71d1 (diff)
fix(cli): prompt works with windows eol and eof (#8149)
Diffstat (limited to 'cli/tests/066_prompt.ts')
-rw-r--r--cli/tests/066_prompt.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/066_prompt.ts b/cli/tests/066_prompt.ts
index 1c4a11f98..e3daa7ac0 100644
--- a/cli/tests/066_prompt.ts
+++ b/cli/tests/066_prompt.ts
@@ -12,6 +12,10 @@ const answer2 = confirm("Question 2"); // Answer with yes (returns false)
console.log(`Your answer is ${answer2}`);
const answer3 = confirm(); // Answer with default
console.log(`Your answer is ${answer3}`);
+const windows = prompt("What is Windows EOL?");
+console.log(`Your answer is ${JSON.stringify(windows)}`);
alert("Hi");
alert();
console.log("The end of test");
+const eof = prompt("What is EOF?");
+console.log(`Your answer is ${JSON.stringify(eof)}`);