mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Security Solution][Endpoint] Rename Responder cls
command to clear
(#137131)
This commit is contained in:
parent
4d1da83d93
commit
fd1e7ed600
3 changed files with 4 additions and 4 deletions
|
@ -219,7 +219,7 @@ export const CommandList = memo<CommandListProps>(({ commands, display = 'defaul
|
|||
const getFilteredCommands = useCallback(
|
||||
(commandsByGroup): CommandDefinition[] =>
|
||||
commandsByGroup.filter(
|
||||
(current: CommandDefinition) => current.name !== 'help' && current.name !== 'cls'
|
||||
(current: CommandDefinition) => current.name !== 'help' && current.name !== 'clear'
|
||||
),
|
||||
[]
|
||||
);
|
||||
|
|
|
@ -48,14 +48,14 @@ describe('When a Console command is entered by the user', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it('should clear the command output history when `cls` is entered', async () => {
|
||||
it('should clear the command output history when `clear` is entered', async () => {
|
||||
render();
|
||||
enterCommand('help');
|
||||
enterCommand('help');
|
||||
|
||||
expect(renderResult.getByTestId('test-historyOutput').childElementCount).toBe(2);
|
||||
|
||||
enterCommand('cls');
|
||||
enterCommand('clear');
|
||||
|
||||
expect(renderResult.getByTestId('test-historyOutput').childElementCount).toBe(0);
|
||||
});
|
||||
|
|
|
@ -45,7 +45,7 @@ export const getBuiltinCommands = (): CommandDefinition[] => {
|
|||
helpCommandPosition: 1,
|
||||
},
|
||||
{
|
||||
name: 'cls',
|
||||
name: 'clear',
|
||||
about: i18n.translate('xpack.securitySolution.console.builtInCommands.clearAbout', {
|
||||
defaultMessage: 'Clear console screen',
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue