summaryrefslogtreecommitdiffhomepage
path: root/test/components
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-02-06 13:06:42 +0100
committeranderklander <anderklander@gmail.com>2018-02-15 15:58:38 +0100
commit6efe0f6a44512c2a1ac51109ea498f1df7960ee5 (patch)
treeb182bdb0168ff3f833ba5a657bdef18452c13ccb /test/components
parentc6d4b3a2370fa6feeaaf33f0425127753e93039e (diff)
downloadmullvadvpn-6efe0f6a44512c2a1ac51109ea498f1df7960ee5.tar.xz
mullvadvpn-6efe0f6a44512c2a1ac51109ea498f1df7960ee5.zip
Common button component
Diffstat (limited to 'test/components')
-rw-r--r--test/components/Settings.spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/components/Settings.spec.js b/test/components/Settings.spec.js
index fc6b73f17c..d8d30ab4df 100644
--- a/test/components/Settings.spec.js
+++ b/test/components/Settings.spec.js
@@ -109,13 +109,13 @@ describe('components/Settings', () => {
it('should show out-of-time message for unpaid account', () => {
const props = makeProps(unpaidAccountState, settingsState);
const component = getComponent(render(props), 'settings__account_paid_until_label');
- expect(component.children().text()).to.equal('OUT OF TIME');
+ expect(component.prop('subtext')).to.equal('OUT OF TIME');
});
it('should hide out-of-time message for paid account', () => {
const props = makeProps(loggedInAccountState, settingsState);
const component = getComponent(render(props), 'settings__account_paid_until_label');
- expect(component.children().text()).not.to.equal('OUT OF TIME');
+ expect(component.prop('subtext')).not.to.equal('OUT OF TIME');
});
it('should call close callback', (done) => {
@@ -138,7 +138,7 @@ describe('components/Settings', () => {
const props = makeProps(loggedInAccountState, settingsState, {
onViewAccount: () => done()
});
- const component = getComponent(render(props), 'settings__view_account');
+ const component = getComponent(render(props), 'settings__account_paid_until_label');
click(component);
});