Download wp-calypso/client/lib/formatting/decode/test/browser.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/formatting/decode/test/browser.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/formatting/decode/test/browser.js
-
curl -L -o browser.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/formatting/decode/test/browser.js
472 Bytes
| /** | |
| * @jest-environment jsdom | |
| */ | |
| import decodeEntities from '../browser'; | |
| describe( 'decodeEntities', () => { | |
| test( 'should decode entities', () => { | |
| const decoded = decodeEntities( 'Ribs > Chicken' ); | |
| expect( decoded ).toBe( 'Ribs > Chicken' ); | |
| } ); | |
| test( 'should not alter already-decoded entities', () => { | |
| const decoded = decodeEntities( 'Ribs > Chicken. Truth & Liars.' ); | |
| expect( decoded ).toBe( 'Ribs > Chicken. Truth & Liars.' ); | |
| } ); | |
| } ); | |