@@ -19,15 +19,34 @@ describe("<Column />", () => {
19
19
expect ( result ) . toMatchSnapshot ( ) ;
20
20
} ) ;
21
21
22
- it ( "should match the snapshot (order property set to 5) " , ( ) => {
22
+ it ( "should match the snapshot (offset: 3) " , ( ) => {
23
+ // arrange
24
+ const offset = 3 ;
25
+
26
+ // act
27
+ const result = shallow ( < Column offset = { offset } /> ) ;
28
+
29
+ // assert
30
+ expect ( result ) . toMatchSnapshot ( ) ;
31
+ } ) ;
32
+
33
+ it ( "should match the snapshot (offset: { xs: 3, sm: 4, md: 8 }) " , ( ) => {
34
+ // act
35
+ const result = shallow ( < Column offset = { { xs : 3 , sm : 4 , md : 8 } } /> ) ;
36
+
37
+ // assert
38
+ expect ( result ) . toMatchSnapshot ( ) ;
39
+ } ) ;
40
+
41
+ it ( "should match the snapshot (order: 5) " , ( ) => {
23
42
// act
24
43
const result = shallow ( < Column order = { 5 } /> ) ;
25
44
26
45
// assert
27
46
expect ( result ) . toMatchSnapshot ( ) ;
28
47
} ) ;
29
48
30
- it ( "should match the snapshot (order property set to { xs: 'first', sm: 3, md: 'last' }) " , ( ) => {
49
+ it ( "should match the snapshot (order: { xs: 'first', sm: 3, md: 'last' }) " , ( ) => {
31
50
// act
32
51
const result = shallow (
33
52
< Column order = { { xs : "first" , sm : 3 , md : "last" } } />
@@ -37,25 +56,32 @@ describe("<Column />", () => {
37
56
expect ( result ) . toMatchSnapshot ( ) ;
38
57
} ) ;
39
58
40
- it ( "should match the snapshot (order property set to 5 ) " , ( ) => {
59
+ it ( "should match the snapshot (size: 7 ) " , ( ) => {
41
60
// act
42
61
const result = shallow ( < Column size = { 7 } /> ) ;
43
62
44
63
// assert
45
64
expect ( result ) . toMatchSnapshot ( ) ;
46
65
} ) ;
47
66
48
- it ( "should match the snapshot (size property set to { xs: 'auto', sm: 7, md: 'none' }) " , ( ) => {
67
+ it ( "should match the snapshot (size: { xs: 'auto', sm: 7, md: 'none' }) " , ( ) => {
49
68
// act
50
69
const result = shallow ( < Column size = { { xs : "auto" , sm : 7 , md : "none" } } /> ) ;
51
70
52
71
// assert
53
72
expect ( result ) . toMatchSnapshot ( ) ;
54
73
} ) ;
55
74
56
- it ( "should match the snapshot (order property set to 3 size property is set 9)" , ( ) => {
75
+ it ( "should match the snapshot (offset: 3, order: 3, size: 9)" , ( ) => {
76
+ // arrange
77
+ const offset = 3 ;
78
+ const order = 3 ;
79
+ const size = 9 ;
80
+
57
81
// act
58
- const result = shallow ( < Column order = { 3 } size = { 9 } /> ) ;
82
+ const result = shallow (
83
+ < Column offset = { offset } order = { order } size = { size } />
84
+ ) ;
59
85
60
86
// assert
61
87
expect ( result ) . toMatchSnapshot ( ) ;
0 commit comments