Download wp-calypso/client/state/selectors/test/get-concierge-user-blocked.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 475 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/test/get-concierge-user-blocked.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/test/get-concierge-user-blocked.js
-
curl -L -o get-concierge-user-blocked.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/test/get-concierge-user-blocked.js
475 Bytes
| import getConciergeUserBlocked from 'calypso/state/selectors/get-concierge-user-blocked'; | |
| describe( 'getConciergeUserBlocked()', () => { | |
| test( 'should default to null', () => { | |
| expect( getConciergeUserBlocked( {} ) ).toBeNull(); | |
| } ); | |
| test( "should return the user's blocked status in the state,", () => { | |
| const isUserBlocked = true; | |
| expect( | |
| getConciergeUserBlocked( { | |
| concierge: { | |
| isUserBlocked, | |
| }, | |
| } ) | |
| ).toEqual( isUserBlocked ); | |
| } ); | |
| } ); | |