Download wp-calypso/client/state/ui/layout-focus/test/actions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 830 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/layout-focus/test/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/layout-focus/test/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/layout-focus/test/actions.js
830 Bytes
| import { | |
| LAYOUT_FOCUS_SET, | |
| LAYOUT_NEXT_FOCUS_SET, | |
| LAYOUT_NEXT_FOCUS_ACTIVATE, | |
| } from 'calypso/state/action-types'; | |
| import { setLayoutFocus, setNextLayoutFocus, activateNextLayoutFocus } from '../actions'; | |
| describe( 'actions', () => { | |
| describe( 'setLayoutFocus', () => { | |
| test( 'returns an appropriate action', () => { | |
| expect( setLayoutFocus( 'foo' ) ).toEqual( { type: LAYOUT_FOCUS_SET, area: 'foo' } ); | |
| } ); | |
| } ); | |
| describe( 'setNextLayoutFocus', () => { | |
| test( 'returns an appropriate action', () => { | |
| expect( setNextLayoutFocus( 'foo' ) ).toEqual( { type: LAYOUT_NEXT_FOCUS_SET, area: 'foo' } ); | |
| } ); | |
| } ); | |
| describe( 'activateNextLayoutFocus', () => { | |
| test( 'returns an appropriate action', () => { | |
| expect( activateNextLayoutFocus() ).toEqual( { type: LAYOUT_NEXT_FOCUS_ACTIVATE } ); | |
| } ); | |
| } ); | |
| } ); | |