diff options
| author | anderklander <anderklander@gmail.com> | 2018-02-06 13:06:42 +0100 |
|---|---|---|
| committer | anderklander <anderklander@gmail.com> | 2018-02-15 15:58:38 +0100 |
| commit | 6efe0f6a44512c2a1ac51109ea498f1df7960ee5 (patch) | |
| tree | b182bdb0168ff3f833ba5a657bdef18452c13ccb /test/components | |
| parent | c6d4b3a2370fa6feeaaf33f0425127753e93039e (diff) | |
| download | mullvadvpn-6efe0f6a44512c2a1ac51109ea498f1df7960ee5.tar.xz mullvadvpn-6efe0f6a44512c2a1ac51109ea498f1df7960ee5.zip | |
Common button component
Diffstat (limited to 'test/components')
| -rw-r--r-- | test/components/Settings.spec.js | 6 |
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); }); |
