All files / src/utils isExportBlock.js

100% Statements 3/3
100% Branches 5/5
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11        48x 2x     46x    
/**
 * Check whether a node is an :export block
 */
export function isExportBlock(node /*: Object*/) /*: boolean*/ {
  if (node.type === "rule" && node.selector && node.selector === ":export") {
    return true;
  }
 
  return false;
}