Code coverage report for lib/inTraderPayment.js

Statements: 100% (23 / 23)      Branches: 88.46% (23 / 26)      Functions: 100% (5 / 5)      Lines: 100% (23 / 23)      Ignored: none     

All files » lib/ » inTraderPayment.js
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    1 37         37 12 2 2     12       12 6 2     12     37 31 6 3     31     37 11 5 2     11       1 1    
'use strict';
 
function inTraderPayment() {
    var registered = false,
        method = '',
        fee = 0,
        text = '';
 
    this.registered = function(val) {
        if(val) {
            Eif(typeof val == 'boolean' || val instanceof Boolean) {
                registered = val;
            }
        }
        return registered;
    } ,
 
        this.method = function(val) {
            if(val) {
                if(typeof val == 'string' || val instanceof String) {
                    method = val;
                }
            }
            return method;
        }
 
    this.fee = function(val) {
        if(val) {
            if(typeof val == 'number' || val instanceof Number) {
                fee = val;
            }
        }
        return fee;
    }
 
    this.text = function(val) {
        if(val) {
            if(typeof val == 'string' || val instanceof String) {
                text = val;
            }
        }
        return text;
    }
}
 
Eif (typeof module !== 'undefined') {
    module.exports = inTraderPayment;
}