--- task_categories: - summarization --- # AutoTrain Dataset for project: javascript-traing-1 ## Dataset Description This dataset has been automatically processed by AutoTrain for project javascript-traing-1. ### Languages The BCP-47 code for the dataset's language is unk. ## Dataset Structure ### Data Instances A sample from this dataset looks as follows: ```json [ { "target": "test/NavbarSpec.js", "feat_repo_name": "aabenoja/react-bootstrap", "text": "import React from 'react';\nimport ReactTestUtils from 'react/lib/ReactTestUtils';\nimport Navbar from '../src/Navbar';\nimport Nav from '../src/Nav';\n\ndescribe('Nav', function () {\n\n it('Should create nav element', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n );\n let nav = instance.getDOMNode();\n assert.equal(nav.nodeName, 'NAV');\n assert.ok(nav.className.match(/\\bnavbar\\b/));\n assert.ok(nav.getAttribute('role'), 'navigation');\n });\n\n it('Should add fixedTop variation class', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n );\n assert.ok(ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-fixed-top'));\n });\n\n it('Should add fixedBottom variation class', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n );\n assert.ok(ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-fixed-bottom'));\n });\n\n it('Should add staticTop variation class', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n );\n assert.ok(ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-static-top'));\n });\n\n it('Should add inverse variation class', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n );\n assert.ok(ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-inverse'));\n });\n\n it('Should add fluid variation class', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n );\n assert.ok(ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'container-fluid'));\n });\n\n it('Should override role attribute', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n );\n assert.ok(instance.getDOMNode().getAttribute('role'), 'banner');\n });\n\n it('Should override node class', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n );\n assert.ok(instance.getDOMNode().nodeName, 'HEADER');\n });\n\n it('Should add header with brand', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n );\n\n let header = ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-header');\n\n assert.ok(header);\n\n let brand = ReactTestUtils.findRenderedDOMComponentWithClass(header, 'navbar-brand');\n\n assert.ok(brand);\n assert.equal(brand.getDOMNode().innerText, 'Brand');\n });\n\n it('Should add header with brand component', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n Brand} />\n );\n\n let header = ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-header');\n\n assert.ok(header);\n\n let brand = ReactTestUtils.findRenderedDOMComponentWithClass(header, 'navbar-brand');\n\n assert.ok(brand);\n assert.equal(brand.getDOMNode().nodeName, 'A');\n assert.equal(brand.getDOMNode().innerText, 'Brand');\n });\n\n it('Should pass navbar prop to navs', function () {\n let instance = ReactTestUtils.renderIntoDocument(\n \n