index.js
function text(node) {
  unist(node)

  assert.strictEqual(
    'children' in node,
    false,
    'text should not have `children`'
  )
  assert.ok('value' in node, 'text should have `value`')
}
function text(node) {
  unist(node)

  assert.strictEqual(
    'children' in node,
    false,
    'text should not have `children`'
  )
  assert.ok('value' in node, 'text should have `value`')
}
/* Assert `node` is a text node.