From linking.spec.js:
t.test('skips non-link properties', t => {
const node = makeNode({
slug: 'source',
title: 'Hello',
count: 42
})
resolveLinks(node, [])
t.equal(node.getLinks().length, 0, 'no links created for plain properties')
t.end()
})
No links will be created, anyway, if the 2nd parameter to resolveLinks (nodes) is an empty array.
All unit tests should be checked against this kind of sloppy shit.
From linking.spec.js:
No links will be created, anyway, if the 2nd parameter to
resolveLinks(nodes) is an empty array.All unit tests should be checked against this kind of sloppy shit.