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