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