// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`TermsOfService should enable/disable navigator buttons on setNavigatorButtons true/false 1`] = `
<React.Fragment>
  <Connect(StatusBar) />
  <ScrollViewMock
    contentContainerStyle={
      Object {
        "paddingBottom": 50,
      }
    }
    style={
      Object {
        "backgroundColor": "#ffffff",
        "flex": 1,
        "padding": 30,
      }
    }
  >
    <Connect(Markdown)
      baseTextStyle={
        Object {
          "color": "#3d3c40",
          "fontSize": 15,
          "lineHeight": 20,
        }
      }
      blockStyles={
        Object {
          "adjacentParagraph": Object {
            "marginTop": 6,
          },
          "horizontalRule": Object {
            "backgroundColor": "#3d3c40",
            "flex": 1,
            "height": 0.5,
            "marginVertical": 10,
          },
          "quoteBlockIcon": Object {
            "color": undefined,
            "padding": 5,
          },
        }
      }
      disableAtMentions={true}
      disableChannelLink={true}
      disableHashtags={true}
      navigator={
        Object {
          "dismissAllModals": [MockFunction],
          "dismissModal": [MockFunction],
          "setButtons": [MockFunction] {
            "calls": Array [
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": true,
                      "icon": Object {},
                      "id": "reject-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": true,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": true,
                      "icon": Object {},
                      "id": "reject-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": true,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": false,
                      "icon": Object {},
                      "id": "reject-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": false,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
            ],
            "results": Array [
              Object {
                "type": "return",
                "value": undefined,
              },
              Object {
                "type": "return",
                "value": undefined,
              },
              Object {
                "type": "return",
                "value": undefined,
              },
            ],
          },
          "setOnNavigatorEvent": [MockFunction] {
            "calls": Array [
              Array [
                [Function],
              ],
            ],
            "results": Array [
              Object {
                "type": "return",
                "value": undefined,
              },
            ],
          },
        }
      }
      textStyles={
        Object {
          "code": Object {
            "alignSelf": "center",
            "backgroundColor": undefined,
            "fontFamily": "Menlo",
          },
          "codeBlock": Object {
            "fontFamily": "Menlo",
          },
          "del": Object {
            "textDecorationLine": "line-through",
          },
          "emph": Object {
            "fontStyle": "italic",
          },
          "error": Object {
            "color": "#fd5960",
          },
          "heading1": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading1Text": Object {
            "paddingBottom": 8,
          },
          "heading2": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading2Text": Object {
            "paddingBottom": 8,
          },
          "heading3": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading3Text": Object {
            "paddingBottom": 8,
          },
          "heading4": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading4Text": Object {
            "paddingBottom": 8,
          },
          "heading5": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading5Text": Object {
            "paddingBottom": 8,
          },
          "heading6": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading6Text": Object {
            "paddingBottom": 8,
          },
          "link": Object {
            "color": "#2389d7",
          },
          "mention": Object {
            "color": "#2389d7",
          },
          "mention_highlight": Object {
            "backgroundColor": "#ffe577",
          },
          "strong": Object {
            "fontWeight": "bold",
          },
          "table_header_row": Object {
            "fontWeight": "700",
          },
        }
      }
      value="Terms Text"
    />
  </ScrollViewMock>
</React.Fragment>
`;

exports[`TermsOfService should enable/disable navigator buttons on setNavigatorButtons true/false 2`] = `
<React.Fragment>
  <Connect(StatusBar) />
  <ScrollViewMock
    contentContainerStyle={
      Object {
        "paddingBottom": 50,
      }
    }
    style={
      Object {
        "backgroundColor": "#ffffff",
        "flex": 1,
        "padding": 30,
      }
    }
  >
    <Connect(Markdown)
      baseTextStyle={
        Object {
          "color": "#3d3c40",
          "fontSize": 15,
          "lineHeight": 20,
        }
      }
      blockStyles={
        Object {
          "adjacentParagraph": Object {
            "marginTop": 6,
          },
          "horizontalRule": Object {
            "backgroundColor": "#3d3c40",
            "flex": 1,
            "height": 0.5,
            "marginVertical": 10,
          },
          "quoteBlockIcon": Object {
            "color": undefined,
            "padding": 5,
          },
        }
      }
      disableAtMentions={true}
      disableChannelLink={true}
      disableHashtags={true}
      navigator={
        Object {
          "dismissAllModals": [MockFunction],
          "dismissModal": [MockFunction],
          "setButtons": [MockFunction] {
            "calls": Array [
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": true,
                      "icon": Object {},
                      "id": "reject-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": true,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": true,
                      "icon": Object {},
                      "id": "reject-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": true,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": false,
                      "icon": Object {},
                      "id": "reject-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": false,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": true,
                      "icon": Object {},
                      "id": "reject-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": true,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
            ],
            "results": Array [
              Object {
                "type": "return",
                "value": undefined,
              },
              Object {
                "type": "return",
                "value": undefined,
              },
              Object {
                "type": "return",
                "value": undefined,
              },
              Object {
                "type": "return",
                "value": undefined,
              },
            ],
          },
          "setOnNavigatorEvent": [MockFunction] {
            "calls": Array [
              Array [
                [Function],
              ],
            ],
            "results": Array [
              Object {
                "type": "return",
                "value": undefined,
              },
            ],
          },
        }
      }
      textStyles={
        Object {
          "code": Object {
            "alignSelf": "center",
            "backgroundColor": undefined,
            "fontFamily": "Menlo",
          },
          "codeBlock": Object {
            "fontFamily": "Menlo",
          },
          "del": Object {
            "textDecorationLine": "line-through",
          },
          "emph": Object {
            "fontStyle": "italic",
          },
          "error": Object {
            "color": "#fd5960",
          },
          "heading1": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading1Text": Object {
            "paddingBottom": 8,
          },
          "heading2": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading2Text": Object {
            "paddingBottom": 8,
          },
          "heading3": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading3Text": Object {
            "paddingBottom": 8,
          },
          "heading4": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading4Text": Object {
            "paddingBottom": 8,
          },
          "heading5": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading5Text": Object {
            "paddingBottom": 8,
          },
          "heading6": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading6Text": Object {
            "paddingBottom": 8,
          },
          "link": Object {
            "color": "#2389d7",
          },
          "mention": Object {
            "color": "#2389d7",
          },
          "mention_highlight": Object {
            "backgroundColor": "#ffe577",
          },
          "strong": Object {
            "fontWeight": "bold",
          },
          "table_header_row": Object {
            "fontWeight": "700",
          },
        }
      }
      value="Terms Text"
    />
  </ScrollViewMock>
</React.Fragment>
`;

exports[`TermsOfService should match snapshot 1`] = `
<Loading
  color="grey"
  size="large"
  style={Object {}}
/>
`;

exports[`TermsOfService should match snapshot for fail of get terms 1`] = `
<View
  style={
    Object {
      "backgroundColor": "#ffffff",
      "flex": 1,
    }
  }
>
  <Connect(StatusBar) />
  <FailedNetworkAction
    errorDescription={
      Object {
        "defaultMessage": "Make sure you have an active internet connection and try again. If this issue persists, contact your System Administrator.",
        "id": "mobile.terms_of_service.get_terms_error_description",
      }
    }
    errorTitle={
      Object {
        "defaultMessage": "Unable to load terms of service.",
        "id": "mobile.terms_of_service.get_terms_error_title",
      }
    }
    onRetry={[Function]}
    theme={
      Object {
        "awayIndicator": "#ffbc42",
        "buttonBg": "#166de0",
        "buttonColor": "#ffffff",
        "centerChannelBg": "#ffffff",
        "centerChannelColor": "#3d3c40",
        "codeTheme": "github",
        "dndIndicator": "#f74343",
        "errorTextColor": "#fd5960",
        "linkColor": "#2389d7",
        "mentionBj": "#ffffff",
        "mentionColor": "#145dbf",
        "mentionHighlightBg": "#ffe577",
        "mentionHighlightLink": "#166de0",
        "newMessageSeparator": "#ff8800",
        "onlineIndicator": "#06d6a0",
        "sidebarBg": "#145dbf",
        "sidebarHeaderBg": "#1153ab",
        "sidebarHeaderTextColor": "#ffffff",
        "sidebarText": "#ffffff",
        "sidebarTextActiveBorder": "#579eff",
        "sidebarTextActiveColor": "#ffffff",
        "sidebarTextHoverBg": "#4578bf",
        "sidebarUnreadText": "#ffffff",
        "type": "Mattermost",
      }
    }
  />
</View>
`;

exports[`TermsOfService should match snapshot for get terms 1`] = `
<Loading
  color="grey"
  size="large"
  style={Object {}}
/>
`;

exports[`TermsOfService should match snapshot on enableNavigatorLogout 1`] = `
<React.Fragment>
  <Connect(StatusBar) />
  <ScrollViewMock
    contentContainerStyle={
      Object {
        "paddingBottom": 50,
      }
    }
    style={
      Object {
        "backgroundColor": "#ffffff",
        "flex": 1,
        "padding": 30,
      }
    }
  >
    <Connect(Markdown)
      baseTextStyle={
        Object {
          "color": "#3d3c40",
          "fontSize": 15,
          "lineHeight": 20,
        }
      }
      blockStyles={
        Object {
          "adjacentParagraph": Object {
            "marginTop": 6,
          },
          "horizontalRule": Object {
            "backgroundColor": "#3d3c40",
            "flex": 1,
            "height": 0.5,
            "marginVertical": 10,
          },
          "quoteBlockIcon": Object {
            "color": undefined,
            "padding": 5,
          },
        }
      }
      disableAtMentions={true}
      disableChannelLink={true}
      disableHashtags={true}
      navigator={
        Object {
          "dismissAllModals": [MockFunction],
          "dismissModal": [MockFunction],
          "setButtons": [MockFunction] {
            "calls": Array [
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": true,
                      "icon": Object {},
                      "id": "reject-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": true,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": true,
                      "icon": Object {},
                      "id": "reject-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": true,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
              Array [
                Object {
                  "leftButtons": Array [
                    Object {
                      "disabled": false,
                      "icon": Object {},
                      "id": "close-terms-of-service",
                    },
                  ],
                  "rightButtons": Array [
                    Object {
                      "disabled": true,
                      "id": "accept-terms-of-service",
                      "showAsAction": "always",
                      "title": undefined,
                    },
                  ],
                },
              ],
            ],
            "results": Array [
              Object {
                "type": "return",
                "value": undefined,
              },
              Object {
                "type": "return",
                "value": undefined,
              },
              Object {
                "type": "return",
                "value": undefined,
              },
            ],
          },
          "setOnNavigatorEvent": [MockFunction] {
            "calls": Array [
              Array [
                [Function],
              ],
            ],
            "results": Array [
              Object {
                "type": "return",
                "value": undefined,
              },
            ],
          },
        }
      }
      textStyles={
        Object {
          "code": Object {
            "alignSelf": "center",
            "backgroundColor": undefined,
            "fontFamily": "Menlo",
          },
          "codeBlock": Object {
            "fontFamily": "Menlo",
          },
          "del": Object {
            "textDecorationLine": "line-through",
          },
          "emph": Object {
            "fontStyle": "italic",
          },
          "error": Object {
            "color": "#fd5960",
          },
          "heading1": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading1Text": Object {
            "paddingBottom": 8,
          },
          "heading2": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading2Text": Object {
            "paddingBottom": 8,
          },
          "heading3": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading3Text": Object {
            "paddingBottom": 8,
          },
          "heading4": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading4Text": Object {
            "paddingBottom": 8,
          },
          "heading5": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading5Text": Object {
            "paddingBottom": 8,
          },
          "heading6": Object {
            "fontSize": 17,
            "fontWeight": "700",
            "lineHeight": 25,
          },
          "heading6Text": Object {
            "paddingBottom": 8,
          },
          "link": Object {
            "color": "#2389d7",
          },
          "mention": Object {
            "color": "#2389d7",
          },
          "mention_highlight": Object {
            "backgroundColor": "#ffe577",
          },
          "strong": Object {
            "fontWeight": "bold",
          },
          "table_header_row": Object {
            "fontWeight": "700",
          },
        }
      }
      value="Terms Text"
    />
  </ScrollViewMock>
</React.Fragment>
`;
