File size: 586 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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 );
} );
} );
|