Code coverage report for app/othermath.js

Statements: 78.95% (15 / 19)      Branches: 70% (7 / 10)      Functions: 75% (3 / 4)      Lines: 78.95% (15 / 19)      Ignored: none     

All files » app/ » othermath.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 391   1       1 1 1           1 1 2 39 37 1               1 1 1             1    
var module = module || {};
 
function getInput() {
	var input = document.getElementById("input").value;
}
 
function checkWordCount(inputText) {
	Eif (inputText.split(' ').length < 100) {
		return true;
	} else {
		return false;
	}
}
 
function duplicateCheck(inputText) {
    for (var i = 0; i < inputText.length; i++) {
        for (var j = 0; j < inputText.length; j++) {
            if (i != j) {
                if (inputText[i] === inputText[j]) {
                        return false; 
                }
            }
        }
    }
    return true; 
}
 
function verifyAlphaNumeric(inputText){
	Eif (/^[a-z0-9]+$/i) {
			return false;
		} else {
			return true;
		}
	
}
 
module.exports = { checkWordCount, duplicateCheck, verifyAlphaNumeric };