Skip to content

Commit c1f6de3

Browse files
committed
ugh tests
1 parent 9135497 commit c1f6de3

File tree

3 files changed

+48
-64
lines changed

3 files changed

+48
-64
lines changed

src/components/Message/MessageSimple/__tests__/__snapshots__/MessageTextContainer.test.js.snap

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ exports[`MessageTextContainer should render message text container 1`] = `
2727
style={
2828
Array [
2929
Object {
30-
"minHeight": 1,
31-
"minWidth": 1,
30+
"alignSelf": "stretch",
3231
},
3332
undefined,
3433
]
@@ -41,17 +40,16 @@ exports[`MessageTextContainer should render message text container 1`] = `
4140
"flexDirection": "row",
4241
"flexWrap": "wrap",
4342
"justifyContent": "flex-start",
43+
"marginBottom": 0,
44+
"marginTop": 0,
4445
}
4546
}
4647
>
4748
<Text
4849
style={
49-
Array [
50-
Object {
51-
"color": "#222222",
52-
},
53-
undefined,
54-
]
50+
Object {
51+
"color": "#222222",
52+
}
5553
}
5654
>
5755
Hello World

src/components/MessageList/__tests__/__snapshots__/MessageList.test.js.snap

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ exports[`MessageList should render the message list and match snapshot 1`] = `
363363
style={
364364
Array [
365365
Object {
366-
"minHeight": 1,
367-
"minWidth": 1,
366+
"alignSelf": "stretch",
368367
},
369368
undefined,
370369
]
@@ -377,17 +376,16 @@ exports[`MessageList should render the message list and match snapshot 1`] = `
377376
"flexDirection": "row",
378377
"flexWrap": "wrap",
379378
"justifyContent": "flex-start",
379+
"marginBottom": 0,
380+
"marginTop": 0,
380381
}
381382
}
382383
>
383384
<Text
384385
style={
385-
Array [
386-
Object {
387-
"color": "#222222",
388-
},
389-
undefined,
390-
]
386+
Object {
387+
"color": "#222222",
388+
}
391389
}
392390
>
393391
Message3
@@ -693,8 +691,7 @@ exports[`MessageList should render the message list and match snapshot 1`] = `
693691
style={
694692
Array [
695693
Object {
696-
"minHeight": 1,
697-
"minWidth": 1,
694+
"alignSelf": "stretch",
698695
},
699696
undefined,
700697
]
@@ -707,17 +704,16 @@ exports[`MessageList should render the message list and match snapshot 1`] = `
707704
"flexDirection": "row",
708705
"flexWrap": "wrap",
709706
"justifyContent": "flex-start",
707+
"marginBottom": 0,
708+
"marginTop": 0,
710709
}
711710
}
712711
>
713712
<Text
714713
style={
715-
Array [
716-
Object {
717-
"color": "#222222",
718-
},
719-
undefined,
720-
]
714+
Object {
715+
"color": "#222222",
716+
}
721717
}
722718
>
723719
Message2
@@ -937,8 +933,7 @@ exports[`MessageList should render the message list and match snapshot 1`] = `
937933
style={
938934
Array [
939935
Object {
940-
"minHeight": 1,
941-
"minWidth": 1,
936+
"alignSelf": "stretch",
942937
},
943938
undefined,
944939
]
@@ -951,17 +946,16 @@ exports[`MessageList should render the message list and match snapshot 1`] = `
951946
"flexDirection": "row",
952947
"flexWrap": "wrap",
953948
"justifyContent": "flex-start",
949+
"marginBottom": 0,
950+
"marginTop": 0,
954951
}
955952
}
956953
>
957954
<Text
958955
style={
959-
Array [
960-
Object {
961-
"color": "#222222",
962-
},
963-
undefined,
964-
]
956+
Object {
957+
"color": "#222222",
958+
}
965959
}
966960
>
967961
Message1

src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,7 @@ exports[`Thread should match thread snapshot 1`] = `
356356
style={
357357
Array [
358358
Object {
359-
"minHeight": 1,
360-
"minWidth": 1,
359+
"alignSelf": "stretch",
361360
},
362361
undefined,
363362
]
@@ -370,17 +369,16 @@ exports[`Thread should match thread snapshot 1`] = `
370369
"flexDirection": "row",
371370
"flexWrap": "wrap",
372371
"justifyContent": "flex-start",
372+
"marginBottom": 0,
373+
"marginTop": 0,
373374
}
374375
}
375376
>
376377
<Text
377378
style={
378-
Array [
379-
Object {
380-
"color": "#222222",
381-
},
382-
undefined,
383-
]
379+
Object {
380+
"color": "#222222",
381+
}
384382
}
385383
>
386384
Message6
@@ -600,8 +598,7 @@ exports[`Thread should match thread snapshot 1`] = `
600598
style={
601599
Array [
602600
Object {
603-
"minHeight": 1,
604-
"minWidth": 1,
601+
"alignSelf": "stretch",
605602
},
606603
undefined,
607604
]
@@ -614,17 +611,16 @@ exports[`Thread should match thread snapshot 1`] = `
614611
"flexDirection": "row",
615612
"flexWrap": "wrap",
616613
"justifyContent": "flex-start",
614+
"marginBottom": 0,
615+
"marginTop": 0,
617616
}
618617
}
619618
>
620619
<Text
621620
style={
622-
Array [
623-
Object {
624-
"color": "#222222",
625-
},
626-
undefined,
627-
]
621+
Object {
622+
"color": "#222222",
623+
}
628624
}
629625
>
630626
Message5
@@ -844,8 +840,7 @@ exports[`Thread should match thread snapshot 1`] = `
844840
style={
845841
Array [
846842
Object {
847-
"minHeight": 1,
848-
"minWidth": 1,
843+
"alignSelf": "stretch",
849844
},
850845
undefined,
851846
]
@@ -858,17 +853,16 @@ exports[`Thread should match thread snapshot 1`] = `
858853
"flexDirection": "row",
859854
"flexWrap": "wrap",
860855
"justifyContent": "flex-start",
856+
"marginBottom": 0,
857+
"marginTop": 0,
861858
}
862859
}
863860
>
864861
<Text
865862
style={
866-
Array [
867-
Object {
868-
"color": "#222222",
869-
},
870-
undefined,
871-
]
863+
Object {
864+
"color": "#222222",
865+
}
872866
}
873867
>
874868
Message4
@@ -1168,8 +1162,7 @@ exports[`Thread should match thread snapshot 1`] = `
11681162
style={
11691163
Array [
11701164
Object {
1171-
"minHeight": 1,
1172-
"minWidth": 1,
1165+
"alignSelf": "stretch",
11731166
},
11741167
undefined,
11751168
]
@@ -1182,17 +1175,16 @@ exports[`Thread should match thread snapshot 1`] = `
11821175
"flexDirection": "row",
11831176
"flexWrap": "wrap",
11841177
"justifyContent": "flex-start",
1178+
"marginBottom": 0,
1179+
"marginTop": 0,
11851180
}
11861181
}
11871182
>
11881183
<Text
11891184
style={
1190-
Array [
1191-
Object {
1192-
"color": "#222222",
1193-
},
1194-
undefined,
1195-
]
1185+
Object {
1186+
"color": "#222222",
1187+
}
11961188
}
11971189
>
11981190
Message3

0 commit comments

Comments
 (0)