summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/components/Switch.spec.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/components/Switch.spec.js b/test/components/Switch.spec.js
index 78258b1d40..8cdc053c24 100644
--- a/test/components/Switch.spec.js
+++ b/test/components/Switch.spec.js
@@ -19,9 +19,7 @@ describe('components/Switch', () => {
Simulate.mouseDown(domNode, { clientX: 100, clientY: 0 });
Simulate.mouseUp(domNode, { clientX: 100, clientY: 0 });
-
- domNode.checked = true;
- Simulate.change(domNode);
+ Simulate.change(domNode, { target: { checked: true } });
});
it('should switch off', (done) => {
@@ -36,9 +34,7 @@ describe('components/Switch', () => {
Simulate.mouseDown(domNode, { clientX: 100, clientY: 0 });
Simulate.mouseUp(domNode, { clientX: 100, clientY: 0 });
-
- domNode.checked = false;
- Simulate.change(domNode);
+ Simulate.change(domNode, { target: { checked: false } });
});
it('should handle left to right swipe', (done) => {