@@ -2,9 +2,9 @@ import React from 'react';
2
2
import ReactTestUtils from 'react/lib/ReactTestUtils' ;
3
3
import Image from '../src/Image' ;
4
4
5
- describe ( 'Image' , function ( ) {
5
+ describe ( 'Image' , ( ) => {
6
6
7
- it ( 'should be an image' , function ( ) {
7
+ it ( 'should be an image' , ( ) => {
8
8
let instance = ReactTestUtils . renderIntoDocument (
9
9
< Image />
10
10
) ;
@@ -13,7 +13,7 @@ describe('Image', function() {
13
13
image . nodeName . should . equal ( 'IMG' ) ;
14
14
} ) ;
15
15
16
- it ( 'should provide src and alt prop' , function ( ) {
16
+ it ( 'should provide src and alt prop' , ( ) => {
17
17
let instance = ReactTestUtils . renderIntoDocument (
18
18
< Image src = "image.jpg" alt = "this is alt" />
19
19
) ;
@@ -23,7 +23,7 @@ describe('Image', function() {
23
23
assert . equal ( image . getAttribute ( 'alt' ) , 'this is alt' ) ;
24
24
} ) ;
25
25
26
- it ( 'should have correct class when responsive prop is set' , function ( ) {
26
+ it ( 'should have correct class when responsive prop is set' , ( ) => {
27
27
let instance = ReactTestUtils . renderIntoDocument (
28
28
< Image responsive />
29
29
) ;
@@ -32,7 +32,7 @@ describe('Image', function() {
32
32
imageClassName . should . match ( / \b i m g - r e s p o n s i v e \b / ) ;
33
33
} ) ;
34
34
35
- it ( 'should have correct class when rounded prop is set' , function ( ) {
35
+ it ( 'should have correct class when rounded prop is set' , ( ) => {
36
36
let instance = ReactTestUtils . renderIntoDocument (
37
37
< Image rounded />
38
38
) ;
@@ -41,7 +41,7 @@ describe('Image', function() {
41
41
imageClassName . should . match ( / \b i m g - r o u n d e d \b / ) ;
42
42
} ) ;
43
43
44
- it ( 'should have correct class when circle prop is set' , function ( ) {
44
+ it ( 'should have correct class when circle prop is set' , ( ) => {
45
45
let instance = ReactTestUtils . renderIntoDocument (
46
46
< Image circle />
47
47
) ;
@@ -50,7 +50,7 @@ describe('Image', function() {
50
50
imageClassName . should . match ( / \b i m g - c i r c l e \b / ) ;
51
51
} ) ;
52
52
53
- it ( 'should have correct class when thumbnail prop is set' , function ( ) {
53
+ it ( 'should have correct class when thumbnail prop is set' , ( ) => {
54
54
let instance = ReactTestUtils . renderIntoDocument (
55
55
< Image thumbnail />
56
56
) ;
0 commit comments