react-code-dataset / wp-calypso /client /state /selectors /test /get-concierge-user-blocked.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
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 );
} );
} );