fix and test only space osc payload (#1052)

This commit is contained in:
Alex Christoffer Rasmussen
2024-06-06 11:19:12 +02:00
committed by GitHub
parent 48ebd31c54
commit 6f7846bbf7
3 changed files with 22 additions and 0 deletions
@@ -116,6 +116,18 @@ describe('parseNestedTemplate() -> stringToOSCArgs()', () => {
test: '"string with space and {{not.so.easy}}"',
expect: [{ type: 'string', value: 'string with space and data with space' }],
},
{
test: '',
expect: [],
},
{
test: ' ',
expect: [],
},
{
test: '""',
expect: [{ type: 'string', value: '' }],
},
{
test: '"string with space and {{not.so.empty}}"',
expect: [{ type: 'string', value: 'string with space and ' }],