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

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

All files » stylus-lint/src/checks/ » checkForCssLiteral.js
1 2 3 4 5 6 7 8 9 10 11 12 13      1 4   3 1     2    
'use strict';
 
// if we disallowed css literals, check for them and return true if found
module.exports = function checkCssLiteral( line ) {
    if ( typeof line !== 'string' ) { return; }
 
    if ( line.indexOf('@css') !== -1 ) {
        return true;
    }
    else {
        return false;
    }
}