Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it(wat, () => {
const { proc } = procMd(md);
// Discard position info
const nodes = flattenTree(proc,
(node, recurse) => concat([node], recurse(node.children || [])));
each(nodes, (node) => {
delete node.position;
});
assert.deepStrictEqual(proc.children, yaml.safeLoad(ast));
});
};