Download wp-calypso/packages/data-stores/src/wpcom-plans-ui/test/selectors.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/wpcom-plans-ui/test/selectors.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/wpcom-plans-ui/test/selectors.js
-
curl -L -o selectors.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/wpcom-plans-ui/test/selectors.js
540 Bytes
| import { isDomainUpsellDialogShown } from '../selectors'; | |
| describe( 'WpcomPlansUI selectors', () => { | |
| describe( 'isDomainUpsellDialogShown', () => { | |
| it( 'should retrieve the domain upsell dialog visibility', () => { | |
| const state = { | |
| showDomainUpsellDialog: true, | |
| }; | |
| expect( isDomainUpsellDialogShown( state ) ).toBe( true ); | |
| } ); | |
| it( 'should retrieve false if domain upsell dialog visibility is undefined', () => { | |
| const state = {}; | |
| expect( isDomainUpsellDialogShown( state ) ).toBe( false ); | |
| } ); | |
| } ); | |
| } ); | |