Fix tests

This commit is contained in:
Rodrigo Nascimento 2017-11-13 11:07:35 -02:00
parent d96a098b60
commit dc755e3398
No known key found for this signature in database
GPG Key ID: CFCE33B7B01AC335
4 changed files with 664 additions and 1026 deletions

View File

@ -50,7 +50,6 @@ exports[`render channel 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={false} allowFontScaling={false}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -85,7 +84,6 @@ exports[`render channel 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -103,7 +101,6 @@ exports[`render channel 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -163,7 +160,6 @@ exports[`render no icon 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -181,7 +177,6 @@ exports[`render no icon 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -241,7 +236,6 @@ exports[`render private group 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -259,7 +253,6 @@ exports[`render private group 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -328,7 +321,6 @@ exports[`render unread +999 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -356,7 +348,6 @@ exports[`render unread +999 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -374,7 +365,6 @@ exports[`render unread +999 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -392,7 +382,6 @@ exports[`render unread +999 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Object { Object {
@ -464,7 +453,6 @@ exports[`render unread 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -492,7 +480,6 @@ exports[`render unread 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -510,7 +497,6 @@ exports[`render unread 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -528,7 +514,6 @@ exports[`render unread 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Object { Object {
@ -600,7 +585,6 @@ exports[`renders correctly 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -628,7 +612,6 @@ exports[`renders correctly 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -646,7 +629,6 @@ exports[`renders correctly 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={

View File

@ -24,7 +24,6 @@ exports[`Storyshots Avatar avatar 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -61,7 +60,6 @@ exports[`Storyshots Avatar avatar 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -98,7 +96,6 @@ exports[`Storyshots Avatar avatar 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -135,7 +132,6 @@ exports[`Storyshots Avatar avatar 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -208,7 +204,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -255,7 +250,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -273,7 +267,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -339,7 +332,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -386,7 +378,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -404,7 +395,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -470,7 +460,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -517,7 +506,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -535,7 +523,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -553,7 +540,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Object { Object {
@ -622,7 +608,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -669,7 +654,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -687,7 +671,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -705,7 +688,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Object { Object {
@ -774,7 +756,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -821,7 +802,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -839,7 +819,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -857,7 +836,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Object { Object {
@ -926,7 +904,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -973,7 +950,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -991,7 +967,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -1009,7 +984,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Object { Object {
@ -1078,7 +1052,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -1125,7 +1098,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -1143,7 +1115,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -1161,7 +1132,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Object { Object {
@ -1230,7 +1200,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -1258,7 +1227,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -1276,7 +1244,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -1342,7 +1309,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -1370,7 +1336,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -1388,7 +1353,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -1454,7 +1418,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
style={ style={
Array [ Array [
@ -1482,7 +1445,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={
@ -1500,7 +1462,6 @@ exports[`Storyshots Channel Cell Direct Messages 1`] = `
<Text <Text
accessible={true} accessible={true}
allowFontScaling={true} allowFontScaling={true}
disabled={false}
ellipsizeMode="tail" ellipsizeMode="tail"
numberOfLines={1} numberOfLines={1}
style={ style={

1625
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"scripts": { "scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start", "start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest", "test": "jest",
"updateSnapshot": "jest --updateSnapshot", "test-update": "jest --updateSnapshot",
"lint": "eslint .", "lint": "eslint .",
"ci": "eslint . && jest && codecov", "ci": "eslint . && jest && codecov",
"ios": "react-native run-ios", "ios": "react-native run-ios",
@ -61,6 +61,7 @@
"eslint-plugin-jsx-a11y": "^6.0.2", "eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.4.0", "eslint-plugin-react": "^7.4.0",
"eslint-plugin-react-native": "^3.1.0", "eslint-plugin-react-native": "^3.1.0",
"identity-obj-proxy": "^3.0.0",
"jest": "21.2.1", "jest": "21.2.1",
"jest-cli": "^21.2.1", "jest-cli": "^21.2.1",
"react-dom": "16.1.0", "react-dom": "16.1.0",
@ -69,7 +70,10 @@
"jest": { "jest": {
"preset": "react-native", "preset": "react-native",
"coverageDirectory": "./coverage/", "coverageDirectory": "./coverage/",
"collectCoverage": true "collectCoverage": true,
"moduleNameMapper": {
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy"
}
}, },
"engines": { "engines": {
"node": ">=8.x", "node": ">=8.x",