Download wp-calypso/client/state/ui/layout-focus/test/selectors.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/layout-focus/test/selectors.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/layout-focus/test/selectors.js
-
curl -L -o selectors.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/layout-focus/test/selectors.js
428 Bytes
| import { getCurrentLayoutFocus } from '../../layout-focus/selectors'; | |
| describe( 'selectors', () => { | |
| let state; | |
| beforeAll( () => { | |
| state = { | |
| ui: { | |
| layoutFocus: { | |
| current: 'sites', | |
| next: 'preview', | |
| }, | |
| }, | |
| }; | |
| } ); | |
| describe( 'getCurrentLayoutFocus', () => { | |
| test( 'returns the current layout focus area', () => { | |
| expect( getCurrentLayoutFocus( state ) ).toEqual( 'sites' ); | |
| } ); | |
| } ); | |
| } ); | |