getElementNode = (type, className, text) =>
  ({
    type: 'element',
    tag: type,
    attributes: {
      class: {
        type: 'string',
        value: className }},
    children: text ? [ {type: 'text', text: text } ] : []
  })
@param type
@param className
@param text