diff options
| author | anderklander <anderklander@gmail.com> | 2018-02-08 11:46:58 +0100 |
|---|---|---|
| committer | anderklander <anderklander@gmail.com> | 2018-02-15 16:02:02 +0100 |
| commit | 7c84d7ba36a74a2d1a9a627ee050b982d6bf2dab (patch) | |
| tree | fa7d69d71260a9e63c68599e9a7104e6b5c86bde /app | |
| parent | f6beef965e3e33d9cd1d9fa306f6212db79395c5 (diff) | |
| download | mullvadvpn-7c84d7ba36a74a2d1a9a627ee050b982d6bf2dab.tar.xz mullvadvpn-7c84d7ba36a74a2d1a9a627ee050b982d6bf2dab.zip | |
Account tests
and remove unused import in settings
Diffstat (limited to 'app')
| -rw-r--r-- | app/components/Account.js | 13 | ||||
| -rw-r--r-- | app/components/Settings.js | 2 |
2 files changed, 9 insertions, 6 deletions
diff --git a/app/components/Account.js b/app/components/Account.js index abced9b70d..1241d1f724 100644 --- a/app/components/Account.js +++ b/app/components/Account.js @@ -7,7 +7,6 @@ import { Layout, Container } from './Layout'; import styles from './AccountStyles'; import Img from './Img'; import { formatAccount } from '../lib/formatters'; -import ExternalLinkSVG from '../assets/images/icon-extLink.svg'; import type { AccountReduxState } from '../redux/account/reducers'; @@ -31,7 +30,9 @@ export default class Account extends Component { <Layout> <Container> <View style={styles.account}> - <Button style={styles.account__close} onPress={ this.props.onClose }> + <Button style={styles.account__close} + onPress={ this.props.onClose } + testName='account__close'> <Img style={styles.account__close_icon} source="icon-back" /> <Text style={styles.account__close_title}>Settings</Text> </Button> @@ -52,7 +53,7 @@ export default class Account extends Component { <View style={styles.account__row}> <Text style={styles.account__row_label}>Paid until</Text> { isOutOfTime ? - <Text style={styles.account__out_of_time}>OUT OF TIME</Text> + <Text style={styles.account__out_of_time} testName='account__out_of_time'>OUT OF TIME</Text> : <Text style={styles.account__row_value}>{ formattedExpiry }</Text> } @@ -65,11 +66,13 @@ export default class Account extends Component { text='Buy more credit' icon='icon-extLink' iconStyle={styles.account__buymore_icon} - tintColor='currentColor'/> + tintColor='currentColor' + testName='account__buymore'/> <AppButton style={styles.account__logout} hoverStyle={styles.account__logout_hover} onPress={ this.props.onLogout } - text='Log out'/> + text='Log out' + testName='account__logout'/> </View> </View> diff --git a/app/components/Settings.js b/app/components/Settings.js index d854b51d7d..f992429811 100644 --- a/app/components/Settings.js +++ b/app/components/Settings.js @@ -3,7 +3,7 @@ import moment from 'moment'; import React from 'react'; import { Component, Text, View } from 'reactxp'; import { Button, CellButton, AppButton } from './styled'; -import { Layout, Container, Header } from './Layout'; +import { Layout, Container } from './Layout'; import CustomScrollbars from './CustomScrollbars'; import styles from './SettingsStyles'; import Img from './Img'; |
