Code coverage report for stylus-lint/src/checks/checkForColon.js

Statements: 100% (6 / 6)      Branches: 100% (8 / 8)      Functions: 100% (1 / 1)      Lines: 100% (5 / 5)      Ignored: none     

All files » stylus-lint/src/checks/ » checkForColon.js
1 2 3 4 5 6 7 8 9 10 11 12 13      1 7   3 1     2    
'use strict';
 
// check for colons
module.exports = function checkForColon( line, areWeInAHash ) {
    if ( typeof areWeInAHash === 'undefined' || typeof line === 'undefined' ) { return; }
 
    if ( areWeInAHash === false && line.indexOf(': ') !== -1 ) {
        return true;
    }
    else {
        return false;
    }
}