From 96319fec0d2af2be5802a56d6b05a3ada939c8df Mon Sep 17 00:00:00 2001
From: Steven Thomas <steve.thomas@amdocs.com>
Date: Thu, 13 Sep 2018 16:22:40 -0400
Subject: increasing test coverage to 20 percent

Issue-ID: AAI-1599
Change-Id: I345e38d4319e52b56de0a33d7065e02617cc2103
Signed-off-by: Steven Thomas <steve.thomas@amdocs.com>
---
 src/generic-components/input/ToggleInput.jsx | 100 +++++++++++++--------------
 1 file changed, 50 insertions(+), 50 deletions(-)

(limited to 'src/generic-components/input/ToggleInput.jsx')

diff --git a/src/generic-components/input/ToggleInput.jsx b/src/generic-components/input/ToggleInput.jsx
index 49b0376..f68758a 100644
--- a/src/generic-components/input/ToggleInput.jsx
+++ b/src/generic-components/input/ToggleInput.jsx
@@ -23,54 +23,54 @@ import { PropTypes } from 'prop-types';
 
 export default
 class ToggleInput extends React.Component {
-		
-		static propTypes = {
-				label: PropTypes.node,
-				value: PropTypes.bool,
-				onChange: PropTypes.func,
-				disabled: PropTypes.bool
-		}
-		
-		static defaultProps = {
-				value: false,
-				label: ''
-		}
-		
-		state = {
-				value: this.props.value
-		}
-		
-		status() {
-				return this.state.value ? 'on' : 'off';
-		}
-		
-		render() {
-				let {label, disabled} = this.props;
-				let checked = this.status() === 'on';
-				return (
-						<div className='toggle-input-wrapper form-group'
-						     onClick={!disabled && this.click}>
-								<div className='toggle-input-label'>{label}</div>
-								<div className='toggle-switch'>
-										<input className='toggle toggle-round-flat' type='checkbox'
-										       checked={checked} readOnly/>
-										<label></label>
-								</div>
-						</div>
-				);
-		}
-		
-		click = () => {
-				let value = !this.state.value;
-				this.setState({value});
-				
-				let onChange = this.props.onChange;
-				if (onChange) {
-						onChange(value);
-				}
-		}
-		
-		getValue() {
-				return this.state.value;
-		}
+
+  static propTypes = {
+    label: PropTypes.node,
+    value: PropTypes.bool,
+    onChange: PropTypes.func,
+    disabled: PropTypes.bool
+  }
+
+  static defaultProps = {
+    value: false,
+    label: ''
+  }
+
+  state = {
+    value: this.props.value
+  }
+
+  status() {
+    return this.state.value ? 'on' : 'off';
+  }
+
+  render() {
+    let {label, disabled} = this.props;
+    let checked = this.status() === 'on';
+    return (
+      <div className='toggle-input-wrapper form-group'
+           onClick={!disabled && this.click}>
+        <div className='toggle-input-label'>{label}</div>
+        <div className='toggle-switch'>
+          <input className='toggle toggle-round-flat' type='checkbox'
+                 checked={checked} readOnly/>
+          <label></label>
+        </div>
+      </div>
+    );
+  }
+
+  click = () => {
+    let value = !this.state.value;
+    this.setState({value});
+
+    let onChange = this.props.onChange;
+    if (onChange) {
+      onChange(value);
+    }
+  }
+
+  getValue() {
+    return this.state.value;
+  }
 }
-- 
cgit 1.2.3-korg

