Skip to content

Commit

Permalink
chore: update "string variadic" tests (#30)
Browse files Browse the repository at this point in the history
* tests: test string variadic w/ actual variable string args

* fix(test): prevent syntax error

Co-authored-by: Luke Edwards <[email protected]>
  • Loading branch information
gingerrific and lukeed authored Mar 19, 2021
1 parent 400b848 commit 74cefa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ test('strings', t => {

test('strings (variadic)', t => {
t.is(fn(''), '');
t.is(fn('foo'), 'foo');
t.is(fn(true && 'foo'), 'foo');
t.is(fn(false && 'foo'), '');
t.is(fn('foo', 'bar'), 'foo bar');
t.is(fn(true && 'foo', false && 'bar', 'baz'), 'foo baz');
t.is(fn(false && 'foo', 'bar', 'baz', ''), 'bar baz');
t.end();
});

Expand Down

0 comments on commit 74cefa6

Please sign in to comment.