Skip to content

Commit 366e6fc

Browse files
committed
Add a test
1 parent e85cc95 commit 366e6fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/command.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ test('$ can concatenate at the start of tokens followed by an array', async t =>
206206
t.is(stdout, 'foo\nbarfoo');
207207
});
208208

209+
test('$ can concatenate at the start and end of tokens followed by an array', async t => {
210+
const {stdout} = await $`echo.js foo${['bar', 'foo']}bar`;
211+
t.is(stdout, 'foobar\nfoobar');
212+
});
213+
209214
test('$ can concatenate multiple tokens', async t => {
210215
const {stdout} = await $`echo.js ${'foo'}bar${'foo'}`;
211216
t.is(stdout, 'foobarfoo');

0 commit comments

Comments
 (0)