Commit 30c72227 authored by Jiaan Louw's avatar Jiaan Louw Committed by Jiaan Louw

Update table utility specs

parent 02f5614e
...@@ -30,8 +30,10 @@ describe('table_utility', () => { ...@@ -30,8 +30,10 @@ describe('table_utility', () => {
${'mergedAt'} | ${false} | ${'MERGED_AT_ASC'} ${'mergedAt'} | ${false} | ${'MERGED_AT_ASC'}
${'severity'} | ${true} | ${'SEVERITY_DESC'} ${'severity'} | ${true} | ${'SEVERITY_DESC'}
${'severity'} | ${false} | ${'SEVERITY_ASC'} ${'severity'} | ${false} | ${'SEVERITY_ASC'}
${null} | ${null} | ${'SEVERITY'}
${null} | ${null} | ${''}
`( `(
'returns $sortString when sortBy = "$sortBy" and sortDesc = "sortDesc"', 'returns the expected sort object when the sort string is "$sortString"',
({ sortBy, sortDesc, sortString }) => { ({ sortBy, sortDesc, sortString }) => {
expect(tableUtils.sortStringToObject(sortString)).toStrictEqual({ sortBy, sortDesc }); expect(tableUtils.sortStringToObject(sortString)).toStrictEqual({ sortBy, sortDesc });
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment