-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5532 from flexion/10525-test
10525: Full Spectrum Docket Sorting TO TEST
- Loading branch information
Showing
23 changed files
with
589 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
web-client/src/presenter/actions/clearDocketRecordTableSortAction.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { clearDocketRecordTableSortAction } from '@web-client/presenter/actions/clearDocketRecordTableSortAction'; | ||
import { runAction } from '@web-client/presenter/test.cerebral'; | ||
|
||
describe('clearDocketRecordTableSortAction', () => { | ||
it('should clear docket record table sort', async () => { | ||
const { state } = await runAction(clearDocketRecordTableSortAction, { | ||
state: { | ||
DOCKET_RECORD_TABLE_SORT: { | ||
sortField: 'TEST_sortField', | ||
sortOrder: 'TEST_sortOrder', | ||
}, | ||
}, | ||
}); | ||
|
||
expect(state['DOCKET_RECORD_TABLE_SORT'].sortField).toEqual(undefined); | ||
expect(state['DOCKET_RECORD_TABLE_SORT'].sortOrder).toEqual(undefined); | ||
}); | ||
}); |
7 changes: 7 additions & 0 deletions
7
web-client/src/presenter/actions/clearDocketRecordTableSortAction.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { KEYS } from '@shared/business/entities/EntityConstants'; | ||
import { state } from '@web-client/presenter/app.cerebral'; | ||
|
||
export const clearDocketRecordTableSortAction = ({ store }: ActionProps) => { | ||
store.unset(state[KEYS.DOCKET_RECORD_TABLE_SORT].sortField); | ||
store.unset(state[KEYS.DOCKET_RECORD_TABLE_SORT].sortOrder); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.