diff --git a/docs/src/ComponentsPage.js b/docs/src/ComponentsPage.js index b3f8e8355b..faeeff0b7b 100644 --- a/docs/src/ComponentsPage.js +++ b/docs/src/ComponentsPage.js @@ -675,6 +675,22 @@ const ComponentsPage = React.createClass({ + {/* Images */} +
+

Images

+ +

Shape

+

Use the rounded, circle and thumbnail props to customise the image.

+ + +

Responsive

+

Use the responsive to scale image nicely to the parent element.

+ + +

Props

+ +
+ {/* Thumbnail */}

Thumbnail

@@ -904,22 +920,6 @@ const ComponentsPage = React.createClass({

Props

- - {/* Images */} -
-

Images

- -

Shape

-

Use the rounded, circle and thumbnail props to customise the image.

- - -

Responsive

-

Use the responsive to scale image nicely to the parent element.

- - -

Props

- -
@@ -953,6 +953,7 @@ const ComponentsPage = React.createClass({ Alerts Carousels Grids + Images Thumbnail List group Labels @@ -964,7 +965,6 @@ const ComponentsPage = React.createClass({ Tables Input Utilities - Images Back to top diff --git a/test/ImageSpec.js b/test/ImageSpec.js index 6597a45ac3..a694f887c2 100644 --- a/test/ImageSpec.js +++ b/test/ImageSpec.js @@ -2,9 +2,9 @@ import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Image from '../src/Image'; -describe('Image', function() { +describe('Image', () => { - it('should be an image', function() { + it('should be an image', () => { let instance = ReactTestUtils.renderIntoDocument( ); @@ -13,7 +13,7 @@ describe('Image', function() { image.nodeName.should.equal('IMG'); }); - it('should provide src and alt prop', function() { + it('should provide src and alt prop', () => { let instance = ReactTestUtils.renderIntoDocument( this is alt ); @@ -23,7 +23,7 @@ describe('Image', function() { assert.equal(image.getAttribute('alt'), 'this is alt'); }); - it('should have correct class when responsive prop is set', function() { + it('should have correct class when responsive prop is set', () => { let instance = ReactTestUtils.renderIntoDocument( ); @@ -32,7 +32,7 @@ describe('Image', function() { imageClassName.should.match(/\bimg-responsive\b/); }); - it('should have correct class when rounded prop is set', function() { + it('should have correct class when rounded prop is set', () => { let instance = ReactTestUtils.renderIntoDocument( ); @@ -41,7 +41,7 @@ describe('Image', function() { imageClassName.should.match(/\bimg-rounded\b/); }); - it('should have correct class when circle prop is set', function() { + it('should have correct class when circle prop is set', () => { let instance = ReactTestUtils.renderIntoDocument( ); @@ -50,7 +50,7 @@ describe('Image', function() { imageClassName.should.match(/\bimg-circle\b/); }); - it('should have correct class when thumbnail prop is set', function() { + it('should have correct class when thumbnail prop is set', () => { let instance = ReactTestUtils.renderIntoDocument( );