Download wp-calypso/client/reader/lib/site-description-blocklist/test/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/lib/site-description-blocklist/test/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/reader/lib/site-description-blocklist/test/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/lib/site-description-blocklist/test/index.js
515 Bytes
| import { isSiteDescriptionBlocked } from '../'; | |
| describe( 'isSiteDescriptionBlocked', () => { | |
| test( 'should return true if a site description is blocked', () => { | |
| const blockedDescription = 'Just another WordPress site'; | |
| expect( isSiteDescriptionBlocked( blockedDescription ) ).toBeTrue; | |
| } ); | |
| test( 'should return false if a site description is not blocked', () => { | |
| const unblockedDescription = 'My site is marvellous'; | |
| expect( isSiteDescriptionBlocked( unblockedDescription ) ).toBeFalse; | |
| } ); | |
| } ); | |