Code coverage report for lib/inTraderShipment.js

Statements: 100% (19 / 19)      Branches: 95% (19 / 20)      Functions: 100% (4 / 4)      Lines: 100% (19 / 19)      Ignored: none     

All files » lib/ » inTraderShipment.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    1 38       38 11 5 2     11     38 34 8 4     34     38 11 5 3     11       1 1    
'use strict';
 
function inTraderShipment() {
    var method = '',
        fee = 0,
        zone = '';
 
    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.zone = function(val) {
        if(val) {
            if(typeof val == 'string' || val instanceof String) {
                zone = val;
            }
        }
        return zone;
    }
}
 
Eif (typeof module !== 'undefined') {
    module.exports = inTraderShipment;
}