Download wp-calypso/client/blocks/follow-button/test/button.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/follow-button/test/button.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/follow-button/test/button.js
-
curl -L -o button.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/follow-button/test/button.js
344 Bytes
| /** | |
| * @jest-environment jsdom | |
| */ | |
| import { render, screen } from '@testing-library/react'; | |
| import FollowButton from '../button'; | |
| describe( 'FollowButton', () => { | |
| test( 'should apply a custom follow label', () => { | |
| render( <FollowButton followLabel="Follow Tag" /> ); | |
| expect( screen.getByText( 'Follow Tag' ) ).toBeVisible(); | |
| } ); | |
| } ); | |