From 74cefa60314506f93a4db565c59152c6c0a2295c Mon Sep 17 00:00:00 2001 From: Josh Date Date: Thu, 18 Mar 2021 17:48:36 -0700 Subject: [PATCH] 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 --- test/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.js b/test/index.js index b4e6b2f..8be66cc 100644 --- a/test/index.js +++ b/test/index.js @@ -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(); });