All files / src/helpers cssExtensions.ts

100% Statements 6/6
100% Branches 2/2
100% Functions 3/3
100% Lines 5/5
1 2 3 4 5 6 7 83x   1x 10x   1x 3x  
const isRelative = (fileName: string) => /^\.\.?($|[\\/])/.test(fileName);
 
export const isCSS = (fileName: string) =>
  /\.module\.(sa|sc|c)ss$/.test(fileName);
 
export const isRelativeCSS = (fileName: string) =>
  isCSS(fileName) && isRelative(fileName);