Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a898318

Browse files
Merge pull request zoltantothcom#51 from zoltantothcom/dev
Prioritize ES6 example on pattern page
2 parents 3ee0755 + ac9fa99 commit a898318

File tree

3 files changed

+104
-104
lines changed

3 files changed

+104
-104
lines changed

‎__tests__/components/__snapshots__/Pattern.test.js.snap

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
7474
.
7575
</p>
7676
<h3>
77-
ES5
77+
ES6
7878
</h3>
7979
<pre
8080
style={
@@ -103,7 +103,7 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
103103
}
104104
}
105105
>
106-
function
106+
class
107107
</span>
108108
109109
<span
@@ -115,18 +115,21 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
115115
>
116116
Person
117117
</span>
118-
(
119-
<span
120-
style={
121-
Object {
122-
"color": "#fabd2f",
123-
}
124-
}
125-
/>
126-
)
118+
127119
</span>
128120
{
129121
122+
<span
123+
style={
124+
Object {
125+
"color": "#fb4934",
126+
}
127+
}
128+
>
129+
constructor
130+
</span>
131+
() {
132+
130133
<span
131134
style={
132135
Object {
@@ -156,7 +159,8 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
156159
>
157160
'object'
158161
</span>
159-
)
162+
) {
163+
160164
<span
161165
style={
162166
Object {
@@ -167,8 +171,9 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
167171
return
168172
</span>
169173
Person.instance;
174+
}
170175
171-
Person.instance =
176+
Person.instance =
172177
<span
173178
style={
174179
Object {
@@ -180,7 +185,7 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
180185
</span>
181186
;
182187
183-
188+
184189
<span
185190
style={
186191
Object {
@@ -201,23 +206,34 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
201206
this
202207
</span>
203208
;
209+
}
204210
}
205211
206212
207213
<span
208214
style={
209215
Object {
210-
"color": "#83a598",
216+
"color": "#fb4934",
211217
}
212218
}
213219
>
214-
module
220+
export
215221
</span>
216-
.exports = Person;
222+
223+
<span
224+
style={
225+
Object {
226+
"color": "#fb4934",
227+
}
228+
}
229+
>
230+
default
231+
</span>
232+
Person;
217233
</code>
218234
</pre>
219235
<h3>
220-
ES6
236+
ES5
221237
</h3>
222238
<pre
223239
style={
@@ -246,7 +262,7 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
246262
}
247263
}
248264
>
249-
class
265+
function
250266
</span>
251267
252268
<span
@@ -258,21 +274,18 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
258274
>
259275
Person
260276
</span>
261-
277+
(
278+
<span
279+
style={
280+
Object {
281+
"color": "#fabd2f",
282+
}
283+
}
284+
/>
285+
)
262286
</span>
263287
{
264288
265-
<span
266-
style={
267-
Object {
268-
"color": "#fb4934",
269-
}
270-
}
271-
>
272-
constructor
273-
</span>
274-
() {
275-
276289
<span
277290
style={
278291
Object {
@@ -302,8 +315,7 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
302315
>
303316
'object'
304317
</span>
305-
) {
306-
318+
)
307319
<span
308320
style={
309321
Object {
@@ -314,9 +326,8 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
314326
return
315327
</span>
316328
Person.instance;
317-
}
318329
319-
Person.instance =
330+
Person.instance =
320331
<span
321332
style={
322333
Object {
@@ -328,7 +339,7 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
328339
</span>
329340
;
330341
331-
342+
332343
<span
333344
style={
334345
Object {
@@ -349,30 +360,19 @@ exports[`REFERENCE - Pattern component renders the individual pattern (Singleton
349360
this
350361
</span>
351362
;
352-
}
353363
}
354364
355365
356366
<span
357367
style={
358368
Object {
359-
"color": "#fb4934",
360-
}
361-
}
362-
>
363-
export
364-
</span>
365-
366-
<span
367-
style={
368-
Object {
369-
"color": "#fb4934",
369+
"color": "#83a598",
370370
}
371371
}
372372
>
373-
default
373+
module
374374
</span>
375-
Person;
375+
.exports = Person;
376376
</code>
377377
</pre>
378378
</div>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /