Download wp-calypso/client/state/selectors/test/get-concierge-schedule-id.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/test/get-concierge-schedule-id.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/test/get-concierge-schedule-id.js
-
curl -L -o get-concierge-schedule-id.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/test/get-concierge-schedule-id.js
449 Bytes
| import getConciergeScheduleId from 'calypso/state/selectors/get-concierge-schedule-id'; | |
| describe( 'getConciergeScheduleId()', () => { | |
| test( 'should default to null', () => { | |
| expect( getConciergeScheduleId( {} ) ).toBeNull(); | |
| } ); | |
| test( 'should return the schedule id state value,', () => { | |
| const scheduleId = 123; | |
| expect( | |
| getConciergeScheduleId( { | |
| concierge: { | |
| scheduleId, | |
| }, | |
| } ) | |
| ).toEqual( scheduleId ); | |
| } ); | |
| } ); | |