Download pool/shard005/JavaScript/0031150_footer.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 675 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard005/JavaScript/0031150_footer.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard005/JavaScript/0031150_footer.js
-
curl -L -o 0031150_footer.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard005/JavaScript/0031150_footer.js
675 Bytes
| import React from 'react' | |
| import ReactDom from 'react-dom' | |
| import testUtils from 'react/lib/ReactTestUtils' | |
| import Footer from '../../../../src/js/components/frame/footer' | |
| var expect = require('expect'); | |
| var findDOMNode = ReactDom.findDOMNode; | |
| describe('Footer functional component', function () { | |
| it('has child elements', function () { | |
| // for stateless components, ReactDOM.render and TestUtils.renderIntoDocument will return null. | |
| var wrappedComp = testUtils.renderIntoDocument(<div><Footer/></div>); | |
| var comp = findDOMNode(wrappedComp).children[0]; | |
| expect(comp).toExist(); | |
| expect(comp.childNodes.length).toEqual(3); | |
| }); | |
| }); |