All files is-background-svg.js

100% Statements 5/5
100% Branches 4/4
100% Functions 0/0
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17        1x         4x 4x 2x   4x      
/**
 * Check to see if value contains the string 'data:image/svg+xml'
 * @param String decVal - CSS value
 */
module.exports = {
    /**
     * @return Boolean
     */
    isBackgroundSVG(decVal) {
        let isBackgroundSVG = false;
        if (decVal.indexOf('data:image/svg+xml') !== -1 && decVal.indexOf('data:image/svg+xml;base64,') === -1) {
            isBackgroundSVG = true;
        }
        return isBackgroundSVG;
    }
};