Skip to content

Commit 74cefa6

Browse files
gingerrificlukeed
andauthoredMar 19, 2021
chore: update "string variadic" tests (#30)
* tests: test string variadic w/ actual variable string args * fix(test): prevent syntax error Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>
1 parent 400b848 commit 74cefa6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎test/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ test('strings', t => {
1717

1818
test('strings (variadic)', t => {
1919
t.is(fn(''), '');
20-
t.is(fn('foo'), 'foo');
21-
t.is(fn(true && 'foo'), 'foo');
22-
t.is(fn(false && 'foo'), '');
20+
t.is(fn('foo', 'bar'), 'foo bar');
21+
t.is(fn(true && 'foo', false && 'bar', 'baz'), 'foo baz');
22+
t.is(fn(false && 'foo', 'bar', 'baz', ''), 'bar baz');
2323
t.end();
2424
});
2525

0 commit comments

Comments
 (0)
Please sign in to comment.