Download spectrum/shared/clients/draft-js/message/test/renderer.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/clients/draft-js/message/test/renderer.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/clients/draft-js/message/test/renderer.test.js
-
curl -L -o renderer.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/clients/draft-js/message/test/renderer.test.js
518 Bytes
| // @flow | |
| import { messageRenderer } from '../renderer'; | |
| import mentionsDecorator from '../../mentions-decorator/index'; | |
| import linksDecorator from '../../links-decorator/index'; | |
| describe('messageRenderer', () => { | |
| it('should render certain blocks', () => { | |
| expect(Object.keys(messageRenderer.blocks)).toMatchSnapshot(); | |
| }); | |
| it('should have decorators', () => { | |
| expect(messageRenderer.decorators).toContain(mentionsDecorator); | |
| expect(messageRenderer.decorators).toContain(linksDecorator); | |
| }); | |
| }); | |