Download wp-calypso/client/state/ui/media-modal/test/selectors.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/media-modal/test/selectors.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/ui/media-modal/test/selectors.js
-
curl -L -o selectors.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/ui/media-modal/test/selectors.js
416 Bytes
| import { ModalViews } from '../constants'; | |
| import { getMediaModalView } from '../selectors'; | |
| describe( 'selectors', () => { | |
| describe( 'getMediaModalView()', () => { | |
| test( 'should return the current media modal view', () => { | |
| const view = getMediaModalView( { | |
| ui: { | |
| mediaModal: { | |
| view: ModalViews.DETAIL, | |
| }, | |
| }, | |
| } ); | |
| expect( view ).toEqual( ModalViews.DETAIL ); | |
| } ); | |
| } ); | |
| } ); | |