Skip to content

Commit c65a951

Browse files
author
Igor Canedo
committed
updating devDependencies
1 parent 7a5d0da commit c65a951

File tree

18 files changed

+1207
-11202
lines changed

18 files changed

+1207
-11202
lines changed

package-lock.json

Lines changed: 0 additions & 10169 deletions
This file was deleted.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@
2727
"stringz": "0.4.0"
2828
},
2929
"devDependencies": {
30-
"babel-eslint": "8.2.1",
31-
"babel-jest": "22.1.0",
30+
"babel-eslint": "8.2.2",
31+
"babel-jest": "22.4.1",
3232
"babel-preset-react-native": "4.0.0",
3333
"coveralls": "3.0.0",
34-
"eslint": "4.16.0",
34+
"eslint": "4.18.1",
3535
"eslint-config-airbnb": "16.1.0",
36-
"eslint-plugin-flowtype": "2.41.0",
37-
"eslint-plugin-import": "2.8.0",
36+
"eslint-plugin-flowtype": "2.46.1",
37+
"eslint-plugin-import": "2.9.0",
3838
"eslint-plugin-jsx-a11y": "6.0.3",
39-
"eslint-plugin-react": "7.5.1",
39+
"eslint-plugin-react": "7.7.0",
4040
"eslint-plugin-react-native": "3.2.1",
41-
"flow-bin": "0.63.1",
42-
"jest": "22.1.4",
41+
"flow-bin": "0.66.0",
42+
"jest": "22.4.2",
4343
"react": "16.2.0",
4444
"react-dom": "16.2.0",
45-
"react-native": "0.52.1",
45+
"react-native": "0.53.3",
4646
"react-test-renderer": "16.2.0"
4747
},
4848
"jest": {
@@ -62,7 +62,7 @@
6262
"/coverage/"
6363
],
6464
"collectCoverageFrom": [
65-
"**/*.{js,jsx}"
65+
"src/**/*.{js,jsx}"
6666
]
6767
},
6868
"repository": {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`ViewAfterList should pass props 1`] = `
4+
<View
5+
style={
6+
Object {
7+
"flex": 1,
8+
}
9+
}
10+
/>
11+
`;

sample/__tests__/components/DraftJsText.test.js

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -77,47 +77,41 @@ it('extends a style with a customStyle from another type', () => {
7777
it('renders text-align: left', () => {
7878
const text = 'Hello World';
7979
const data = { 'text-align': 'left' };
80-
const tree = renderer.create(
81-
<DraftJsText
82-
type="paragraph"
83-
text={text}
84-
data={data}
85-
inlineStyles={[]}
86-
entityRanges={[]}
87-
entityMap={{}}
88-
/>,
89-
).toJSON();
80+
const tree = renderer.create(<DraftJsText
81+
type="paragraph"
82+
text={text}
83+
data={data}
84+
inlineStyles={[]}
85+
entityRanges={[]}
86+
entityMap={{}}
87+
/>).toJSON();
9088
expect(tree).toMatchSnapshot();
9189
});
9290

9391
it('renders text-align: right', () => {
9492
const text = 'Hello World';
9593
const data = { 'text-align': 'right' };
96-
const tree = renderer.create(
97-
<DraftJsText
98-
type="paragraph"
99-
text={text}
100-
data={data}
101-
inlineStyles={[]}
102-
entityRanges={[]}
103-
entityMap={{}}
104-
/>,
105-
).toJSON();
94+
const tree = renderer.create(<DraftJsText
95+
type="paragraph"
96+
text={text}
97+
data={data}
98+
inlineStyles={[]}
99+
entityRanges={[]}
100+
entityMap={{}}
101+
/>).toJSON();
106102
expect(tree).toMatchSnapshot();
107103
});
108104

109105
it('renders text-align: center', () => {
110106
const text = 'Hello World';
111107
const data = { 'text-align': 'center' };
112-
const tree = renderer.create(
113-
<DraftJsText
114-
type="paragraph"
115-
text={text}
116-
data={data}
117-
inlineStyles={[]}
118-
entityRanges={[]}
119-
entityMap={{}}
120-
/>,
121-
).toJSON();
108+
const tree = renderer.create(<DraftJsText
109+
type="paragraph"
110+
text={text}
111+
data={data}
112+
inlineStyles={[]}
113+
entityRanges={[]}
114+
entityMap={{}}
115+
/>).toJSON();
122116
expect(tree).toMatchSnapshot();
123117
});

sample/__tests__/components/__snapshots__/BlockQuote.test.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ exports[`extends a style with a customStyle 1`] = `
3131
"fontWeight": "normal",
3232
"marginLeft": 16,
3333
},
34+
Object {
35+
"textAlign": undefined,
36+
},
3437
Object {
3538
"fontSize": 18,
3639
"fontWeight": "normal",
3740
"letterSpacing": -0.75,
3841
"lineHeight": 32,
3942
},
40-
Object {
41-
"textAlign": undefined,
42-
},
4343
]
4444
}
4545
>
@@ -82,10 +82,10 @@ exports[`renders correctly with a blockquote 1`] = `
8282
"fontWeight": "normal",
8383
"marginLeft": 16,
8484
},
85-
undefined,
8685
Object {
8786
"textAlign": undefined,
8887
},
88+
undefined,
8989
]
9090
}
9191
>

sample/__tests__/components/__snapshots__/DraftJsText.test.js.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ exports[`extends a style with a customStyle 1`] = `
1111
"fontSize": 14,
1212
"fontWeight": "normal",
1313
},
14+
Object {
15+
"textAlign": undefined,
16+
},
1417
Object {
1518
"fontSize": 18,
1619
"fontWeight": "normal",
1720
"letterSpacing": -0.75,
1821
"lineHeight": 32,
1922
},
20-
Object {
21-
"textAlign": undefined,
22-
},
2323
]
2424
}
2525
>
@@ -38,10 +38,10 @@ exports[`extends a style with a customStyle from another type 1`] = `
3838
"fontSize": 14,
3939
"fontWeight": "normal",
4040
},
41-
undefined,
4241
Object {
4342
"textAlign": undefined,
4443
},
44+
undefined,
4545
]
4646
}
4747
>
@@ -60,10 +60,10 @@ exports[`renders correctly with a text 1`] = `
6060
"fontSize": 14,
6161
"fontWeight": "normal",
6262
},
63-
undefined,
6463
Object {
6564
"textAlign": undefined,
6665
},
66+
undefined,
6767
]
6868
}
6969
>
@@ -84,10 +84,10 @@ exports[`renders text-align: center 1`] = `
8484
"fontSize": 14,
8585
"fontWeight": "normal",
8686
},
87-
undefined,
8887
Object {
8988
"textAlign": "center",
9089
},
90+
undefined,
9191
]
9292
}
9393
>
@@ -106,10 +106,10 @@ exports[`renders text-align: left 1`] = `
106106
"fontSize": 14,
107107
"fontWeight": "normal",
108108
},
109-
undefined,
110109
Object {
111110
"textAlign": "left",
112111
},
112+
undefined,
113113
]
114114
}
115115
>
@@ -128,10 +128,10 @@ exports[`renders text-align: right 1`] = `
128128
"fontSize": 14,
129129
"fontWeight": "normal",
130130
},
131-
undefined,
132131
Object {
133132
"textAlign": "right",
134133
},
134+
undefined,
135135
]
136136
}
137137
>

sample/__tests__/components/__snapshots__/OrderedListItem.test.js.snap

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ exports[`extends a style with a customStyle.orderedListItemContainer 1`] = `
4747
"fontSize": 14,
4848
"fontWeight": "normal",
4949
},
50+
Object {
51+
"textAlign": undefined,
52+
},
5053
Object {
5154
"fontSize": 18,
5255
"fontWeight": "normal",
@@ -109,6 +112,9 @@ exports[`extends a style with a customStyle.orderedListItemNumber 1`] = `
109112
"fontSize": 14,
110113
"fontWeight": "normal",
111114
},
115+
Object {
116+
"textAlign": undefined,
117+
},
112118
Object {
113119
"fontSize": 18,
114120
"fontWeight": "normal",
@@ -169,6 +175,9 @@ exports[`extends a style with customStyles 1`] = `
169175
"fontSize": 14,
170176
"fontWeight": "normal",
171177
},
178+
Object {
179+
"textAlign": undefined,
180+
},
172181
Object {
173182
"fontSize": 18,
174183
"fontWeight": "normal",
@@ -229,6 +238,9 @@ exports[`renders correctly when customStyles is undefined 1`] = `
229238
"fontSize": 14,
230239
"fontWeight": "normal",
231240
},
241+
Object {
242+
"textAlign": undefined,
243+
},
232244
undefined,
233245
]
234246
}
@@ -285,16 +297,16 @@ exports[`renders correctly when orderedListItemNumber.marginLeft is set 1`] = `
285297
"fontSize": 14,
286298
"fontWeight": "normal",
287299
},
300+
Object {
301+
"textAlign": undefined,
302+
},
288303
Object {
289304
"fontSize": 18,
290305
"fontWeight": "normal",
291306
"letterSpacing": -0.75,
292307
"lineHeight": 32,
293308
"marginLeft": 10,
294309
},
295-
Object {
296-
"textAlign": undefined,
297-
},
298310
]
299311
}
300312
>
@@ -348,6 +360,9 @@ exports[`renders correctly with a ordered-list-item 1`] = `
348360
"fontSize": 14,
349361
"fontWeight": "normal",
350362
},
363+
Object {
364+
"textAlign": undefined,
365+
},
351366
undefined,
352367
]
353368
}
@@ -384,7 +399,7 @@ exports[`renders correctly with a ordered-list-item when depth 1 1`] = `
384399
},
385400
undefined,
386401
Object {
387-
"marginLeft": 7,
402+
"marginLeft": 8,
388403
},
389404
]
390405
}
@@ -402,6 +417,9 @@ exports[`renders correctly with a ordered-list-item when depth 1 1`] = `
402417
"fontSize": 14,
403418
"fontWeight": "normal",
404419
},
420+
Object {
421+
"textAlign": undefined,
422+
},
405423
undefined,
406424
]
407425
}
@@ -456,10 +474,10 @@ exports[`renders correctly with a ordered-list-item when depth is undefined 1`]
456474
"fontSize": 14,
457475
"fontWeight": "normal",
458476
},
459-
undefined,
460477
Object {
461478
"textAlign": undefined,
462479
},
480+
undefined,
463481
]
464482
}
465483
>

0 commit comments

Comments
 (0)