All files / src/common utils.js

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12    1x   1x 5x 11x       1x  
'use strict';
 
const { configTypes } = require('./constants');
 
const containsServerlessConfig = path => {
    return configTypes.some(configType => {
        return path.indexOf(configType) > -1;
    });
};
 
module.exports = { containsServerlessConfig };