All files / src class-declaration.js

100% Statements 6/6
100% Branches 2/2
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10  2x 1x 1x 1x     2x    
function handleClassDeclaration(insertKeyFunc, debug, { id }){
  if(!id) throw new Error('handleClassDeclaration:id was not passed')
  let { name } = id
  debug(`Class: ${name}`)
  insertKeyFunc(name)
}
 
module.exports = {
  handleClassDeclaration
}