packages/utilities/psammead-rich-text-transforms/test/candy-xml.test.js
File candy-xml.test.js
has 562 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const { candyXmlToRichText } = require('../src/index');
const createBody = inner =>
`<body xmlns="http://www.bbc.co.uk/asset" xml:space="preserve" xml:base="http://www.bbc.co.uk/article/abc123">${inner}</body>`;