Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
30c72227
Commit
30c72227
authored
Feb 03, 2022
by
Jiaan Louw
Committed by
Jiaan Louw
Feb 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update table utility specs
parent
02f5614e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
spec/frontend/lib/utils/table_utility_spec.js
spec/frontend/lib/utils/table_utility_spec.js
+3
-1
No files found.
spec/frontend/lib/utils/table_utility_spec.js
View file @
30c72227
...
...
@@ -30,8 +30,10 @@ describe('table_utility', () => {
${
'
mergedAt
'
}
|
${
false
}
|
${
'
MERGED_AT_ASC
'
}
${
'
severity
'
}
|
${
true
}
|
${
'
SEVERITY_DESC
'
}
${
'
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
})
=>
{
expect
(
tableUtils
.
sortStringToObject
(
sortString
)).
toStrictEqual
({
sortBy
,
sortDesc
});
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment