Download wp-calypso/packages/data-stores/src/theme/test/utils.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/theme/test/utils.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/theme/test/utils.ts
-
curl -L -o utils.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/theme/test/utils.ts
521 Bytes
| import { getThemeIdFromStylesheet } from '../utils'; | |
| describe( '#getThemeIdFromStylesheet()', () => { | |
| test( "should return the argument if it doesn't contain a slash (/)", () => { | |
| const themeId = getThemeIdFromStylesheet( 'twentysixteen' ); | |
| expect( themeId ).toEqual( 'twentysixteen' ); | |
| } ); | |
| test( "should return argument's part after the slash if it does contain a slash (/)", () => { | |
| const themeId = getThemeIdFromStylesheet( 'pub/twentysixteen' ); | |
| expect( themeId ).toEqual( 'twentysixteen' ); | |
| } ); | |
| } ); | |