Commit 47bef93d authored by Brandon Labuschagne's avatar Brandon Labuschagne

Merge branch...

Merge branch '351891-follow-up-from-add-sorting-to-compliance-report-violations-table' into 'master'

Update table utility specs

See merge request gitlab-org/gitlab!79846
parents d72d4296 30c72227
...@@ -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