Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / coverage / lcov-report / src / forms / deps / errorMessage.ts.html
Size: Mime:
<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/forms/deps/errorMessage.ts</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../../prettify.css" />
    <link rel="stylesheet" href="../../../base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(../../../sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="../../../index.html">All files</a> / <a href="index.html">src/forms/deps</a> errorMessage.ts
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/7</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/4</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/1</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/7</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">/* eslint-disable max-statements */
<span class="cstat-no" title="statement not covered" >import { isString } from 'exotic'</span>
&nbsp;
const errorMessageList = <span class="cstat-no" title="statement not covered" >{</span>
  email: 'Please enter a valid Email address',
  emailAndPhone: 'Please enter a valid phone number / email address',
  enterPassword: 'Please enter your password',
  newPassword: 'Old and New Passwords should not match',
  password:
    'Password must have at least 8 characters [ 1 upper case, 1 lower case, 1 special case, 1 number]',
  confirmPassword: 'Passwords do not match',
  currentPassword: 'Please enter your current password',
  name: 'Please enter a valid name',
  firstName: 'Please enter your first name',
  lastName: 'Please enter your last name',
  middleName: 'Please enter a valid middle name',
  nameWithoutSpace: 'Please enter a name without empty space',
  phoneNumber: 'Please enter a valid phone number',
  addressRequired: 'Please enter your address',
  zipCode: 'Please enter a valid zip code',
  creditCard: 'Enter your 16 digit card number',
  cvvNumber: 'Please enter a valid cvv number',
  expiryDate: 'Please enter the card expiry date',
  expirationMonth: 'Please enter month',
  expirationYear: 'Please enter year',
  otp: 'Please enter the OTP',
  promoCode: 'Please enter a valid promo code',
  securityQuestionAnswer: 'Please enter your answer',
  orderId: 'Order ID is invalid',
  selectSecurityQuestion: 'Please choose a security question',
  city: 'Please enter a valid city',
  state: 'Please enter a valid state',
  country: 'Please enter a valid country',
  postalCode: 'Please enter a valid postal code',
  addressLine1: 'Please enter address line1',
  addressLine2: 'Please enter address line2',
  required: 'This field is required',
  invalidInput: 'Input is invalid',
  invalidPin: 'Enter PIN',
  passwordSameAsEmail: 'Password should not be the same as Email',
  couponCode: 'Please enter a valid coupon code',
  cancelReason: 'Please choose an option for cancellation',
  returnReason: 'Please choose an option for return',
  securityCode: 'Enter Security Code',
  organizationName: 'Please enter a valid organization name',
  taxId: 'Please enter a valid tax Id',
  selectRole: 'Please select a valid role',
  selectTeam: 'Please select a valid team name',
  selectQuestion: 'Please select a valid question',
}
&nbsp;
function <span class="fstat-no" title="function not covered" >errorMessage(</span>type: string): string {
<span class="cstat-no" title="statement not covered" >  if (isString(type) &amp;&amp; isString(errorMessageList[type])) {</span>
<span class="cstat-no" title="statement not covered" >    return errorMessageList[type]</span>
  }
  // Default message
<span class="cstat-no" title="statement not covered" >  return 'This field is required'</span>
}
&nbsp;
export { <span class="cstat-no" title="statement not covered" >errorMessage </span>}
<span class="cstat-no" title="statement not covered" >export default errorMessage</span>
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Nov 25 2018 21:37:17 GMT+0530 (India Standard Time)
</div>
</div>
<script src="../../../prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="../../../sorter.js"></script>
</body>
</html>