Skip to content

Commit

Permalink
test string to command array will return an empty array when given a …
Browse files Browse the repository at this point in the history
…blank string
  • Loading branch information
drewbrokke committed Oct 27, 2020
1 parent 031a5e6 commit 3d55c1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/test-string-to-command-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import test from 'ava';
import { stringToCommandArray } from '../util/util-functions';

test('stringToCommandArray', (t) => {
t.deepEqual(stringToCommandArray(''), []);

t.deepEqual(stringToCommandArray('hello world'), ['hello', 'world']);

t.deepEqual(stringToCommandArray('one "two three" four'), [
Expand Down

0 comments on commit 3d55c1f

Please sign in to comment.