Skip to content

Commit

Permalink
chore: use undefined as no input vs empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice committed Aug 26, 2024
1 parent 8a1e25b commit 97749bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function test() {
// a string "noInputWithOutputHost" which it should return
let noInputWithOutputOutput = Test.call(
"noInputWithOutput",
"",
undefined,
).text();
Test.assertEqual(
"noInputWithOutput returns expected output",
Expand Down Expand Up @@ -92,7 +92,7 @@ export function test() {
);
}

const noInputNoOutput = Test.call("noInputNoOutput", "");
const noInputNoOutput = Test.call("noInputNoOutput", undefined);
Test.assert(
"noInputNoOutput is called successfully",
noInputNoOutput.isEmpty(),
Expand Down

0 comments on commit 97749bf

Please sign in to comment.