diff options
Diffstat (limited to 'test/components')
| -rw-r--r-- | test/components/Settings.spec.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/components/Settings.spec.js b/test/components/Settings.spec.js index 63087c5088..5655e1e5fa 100644 --- a/test/components/Settings.spec.js +++ b/test/components/Settings.spec.js @@ -33,7 +33,6 @@ describe('components/Settings', () => { }; const settingsState: SettingsReduxState = { - autoSecure: true, preferredServer: defaultServer }; @@ -129,25 +128,6 @@ describe('components/Settings', () => { Simulate.click(domNode); }); - it('should call update callback', (done) => { - const props = makeProps(loggedInAccountState, settingsState, { - onUpdateSettings: (update) => { - try { - expect(update).to.include({ autoSecure: false }); - done(); - } catch(e) { - done(e); - } - } - }); - const domNode = ReactTestUtils.findRenderedDOMComponentWithClass(render(props), 'settings__autosecure'); - - // TODO(Andrej): Add click handler to Switch to avoid calling that horrible chain of events. - Simulate.mouseDown(domNode); - Simulate.mouseUp(domNode); - Simulate.change(domNode, { target: { checked: false } }); - }); - it('should call external links callback', () => { let collectedExternalLinkTypes: Array<string> = []; const props = makeProps(loggedOutAccountState, settingsState, { |
