Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/primer/react
/ getSortHeader
Function
getSortHeader
packages/react/src/DataTable/__tests__/DataTable.test.tsx:725–729 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
723
}
724
725
function getSortHeader() {
726
return screen.getByRole(
'columnheader'
, {
727
name:
'Value'
,
728
})
729
}
730
731
expect(getRowOrder()).toEqual([
'1'
,
'2'
,
'3'
])
732
expect(getSortHeader()).toHaveAttribute(
'aria-sort'
,
'ascending'
)
Callers
1
DataTable.test.tsx
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected