@@ -26,30 +26,30 @@ expect.extend({
26
26
27
27
const message = pass
28
28
? ( ) => {
29
- return (
30
- this . utils . matcherHint ( 'toMatchCss' , undefined , undefined , options ) +
31
- '\n\n' +
32
- `Expected: not ${ this . utils . printExpected ( format ( received ) ) } \n` +
33
- `Received: ${ this . utils . printReceived ( format ( argument ) ) } `
34
- )
35
- }
29
+ return (
30
+ this . utils . matcherHint ( 'toMatchCss' , undefined , undefined , options ) +
31
+ '\n\n' +
32
+ `Expected: not ${ this . utils . printExpected ( format ( received ) ) } \n` +
33
+ `Received: ${ this . utils . printReceived ( format ( argument ) ) } `
34
+ )
35
+ }
36
36
: ( ) => {
37
- const actual = format ( received )
38
- const expected = format ( argument )
39
-
40
- const diffString = diff ( expected , actual , {
41
- expand : this . expand ,
42
- } )
43
-
44
- return (
45
- this . utils . matcherHint ( 'toMatchCss' , undefined , undefined , options ) +
46
- '\n\n' +
47
- ( diffString && diffString . includes ( '- Expect' )
48
- ? `Difference:\n\n${ diffString } `
49
- : `Expected: ${ this . utils . printExpected ( expected ) } \n` +
50
- `Received: ${ this . utils . printReceived ( actual ) } ` )
51
- )
52
- }
37
+ const actual = format ( received )
38
+ const expected = format ( argument )
39
+
40
+ const diffString = diff ( expected , actual , {
41
+ expand : this . expand ,
42
+ } )
43
+
44
+ return (
45
+ this . utils . matcherHint ( 'toMatchCss' , undefined , undefined , options ) +
46
+ '\n\n' +
47
+ ( diffString && diffString . includes ( '- Expect' )
48
+ ? `Difference:\n\n${ diffString } `
49
+ : `Expected: ${ this . utils . printExpected ( expected ) } \n` +
50
+ `Received: ${ this . utils . printReceived ( actual ) } ` )
51
+ )
52
+ }
53
53
54
54
return { actual : received , message, pass }
55
55
} ,
@@ -67,27 +67,27 @@ expect.extend({
67
67
68
68
const message = pass
69
69
? ( ) => {
70
- return (
71
- this . utils . matcherHint ( 'toIncludeCss' , undefined , undefined , options ) +
72
- '\n\n' +
73
- `Expected: not ${ this . utils . printExpected ( format ( received ) ) } \n` +
74
- `Received: ${ this . utils . printReceived ( format ( argument ) ) } `
75
- )
76
- }
70
+ return (
71
+ this . utils . matcherHint ( 'toIncludeCss' , undefined , undefined , options ) +
72
+ '\n\n' +
73
+ `Expected: not ${ this . utils . printExpected ( format ( received ) ) } \n` +
74
+ `Received: ${ this . utils . printReceived ( format ( argument ) ) } `
75
+ )
76
+ }
77
77
: ( ) => {
78
- const diffString = diff ( expected , actual , {
79
- expand : this . expand ,
80
- } )
81
-
82
- return (
83
- this . utils . matcherHint ( 'toIncludeCss' , undefined , undefined , options ) +
84
- '\n\n' +
85
- ( diffString && diffString . includes ( '- Expect' )
86
- ? `Difference:\n\n${ diffString } `
87
- : `Expected: ${ this . utils . printExpected ( expected ) } \n` +
88
- `Received: ${ this . utils . printReceived ( actual ) } ` )
89
- )
90
- }
78
+ const diffString = diff ( expected , actual , {
79
+ expand : this . expand ,
80
+ } )
81
+
82
+ return (
83
+ this . utils . matcherHint ( 'toIncludeCss' , undefined , undefined , options ) +
84
+ '\n\n' +
85
+ ( diffString && diffString . includes ( '- Expect' )
86
+ ? `Difference:\n\n${ diffString } `
87
+ : `Expected: ${ this . utils . printExpected ( expected ) } \n` +
88
+ `Received: ${ this . utils . printReceived ( actual ) } ` )
89
+ )
90
+ }
91
91
92
92
return { actual : received , message, pass }
93
93
} ,
@@ -116,31 +116,31 @@ expect.extend({
116
116
117
117
const message = pass
118
118
? ( ) => {
119
- return (
120
- this . utils . matcherHint ( 'toMatchCss' , undefined , undefined , options ) +
121
- '\n\n' +
122
- `Expected: not ${ this . utils . printExpected ( formattedReceived ) } \n` +
123
- `Received: ${ this . utils . printReceived ( formattedArgument ) } `
124
- )
125
- }
119
+ return (
120
+ this . utils . matcherHint ( 'toMatchCss' , undefined , undefined , options ) +
121
+ '\n\n' +
122
+ `Expected: not ${ this . utils . printExpected ( formattedReceived ) } \n` +
123
+ `Received: ${ this . utils . printReceived ( formattedArgument ) } `
124
+ )
125
+ }
126
126
: ( ) => {
127
- const actual = formattedReceived
128
- const expected = formattedArgument
129
-
130
- const diffString = diff ( expected , actual , {
131
- expand : this . expand ,
132
- } )
133
-
134
- return (
135
- this . utils . matcherHint ( 'toMatchCss' , undefined , undefined , options ) +
136
- '\n\n' +
137
- ( diffString && diffString . includes ( '- Expect' )
138
- ? `Difference:\n\n${ diffString } `
139
- : `Expected: ${ this . utils . printExpected ( expected ) } \n` +
140
- `Received: ${ this . utils . printReceived ( actual ) } ` )
141
- )
142
- }
127
+ const actual = formattedReceived
128
+ const expected = formattedArgument
129
+
130
+ const diffString = diff ( expected , actual , {
131
+ expand : this . expand ,
132
+ } )
133
+
134
+ return (
135
+ this . utils . matcherHint ( 'toMatchCss' , undefined , undefined , options ) +
136
+ '\n\n' +
137
+ ( diffString && diffString . includes ( '- Expect' )
138
+ ? `Difference:\n\n${ diffString } `
139
+ : `Expected: ${ this . utils . printExpected ( expected ) } \n` +
140
+ `Received: ${ this . utils . printReceived ( actual ) } ` )
141
+ )
142
+ }
143
143
144
144
return { actual : received , message, pass }
145
145
} ,
146
- } )
146
+ } )
0 commit comments