Download wp-calypso/client/lib/formatting/decode/test/node.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/wp-calypso/client/lib/formatting/decode/test/node.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/wp-calypso/client/lib/formatting/decode/test/node.js
-
curl -L -o node.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/wp-calypso/client/lib/formatting/decode/test/node.js
442 Bytes
| /** | |
| */ | |
| import decodeEntities from '../node'; | |
| 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.' ); | |
| } ); | |
| } ); | |