All files / src/nodes InheritanceSpecifier.js

100% Statements 6/6
100% Branches 4/4
100% Functions 2/2
100% Lines 6/6

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 12 13 14 15 1655x   55x 230x       55x 230x           55x  
const printSeparatedList = require('./print-separated-list');
 
const printArguments = (node, path, print) =>
  node.arguments && node.arguments.length
    ? ['(', printSeparatedList(path.map(print, 'arguments')), ')']
    : '';
 
const InheritanceSpecifier = {
  print: ({ node, path, print }) => [
    path.call(print, 'baseName'),
    printArguments(node, path, print)
  ]
};
 
module.exports = InheritanceSpecifier;