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

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

All files » stylus-lint/src/checks/ » checkBorderNone.js
1 2 3 4 5 6 7 8 9 10 11 12 13      1 11051   11050 5   11045 47    
'use strict';
 
// checks for border none
module.exports = function checkBorderNone( line ) {
    if ( typeof line !== 'string' ) { return; }
 
    if ( line.indexOf( 'border none' ) !== -1 ) {
        return true;
    }
    else if ( line.indexOf( 'border 0' ) !== -1 ) {
        return false;
    }
}