import { injectMarkupInHtmlHead } from './html';
test('injectMarktupInHtml - Add markups', () => {
const input = `
Test Document
Hey!
`;
expect(
injectMarkupInHtmlHead(
input,
[
'',
'',
],
[],
),
).toBe(
`
Test Document
Hey!
`,
);
});
test('injectMarktupInHtml - Add and remove markups', () => {
const input = `
Test Document
Hey!
`;
expect(
injectMarkupInHtmlHead(
input,
[
'',
'',
],
['meta[name="description"]'],
),
).toBe(
`
Test Document
Hey!
`,
);
});