Skip to content

Commit

Permalink
Adds tests for minified html
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Sep 22, 2024
1 parent da72fb0 commit f826233
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/helper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export const checkAndDelete = (file) => {
}
};

export const strip = (string, safe) => nn(string.replaceAll(/[\r\n]+/gm, ' ').replaceAll(/\s+/gm, safe ? ' ' : ''));
export const strip = (string, safe) =>
nn(string.replaceAll(/[\r\n]+/gm, ' ').replaceAll(/\s+/gm, safe ? ' ' : '')).replaceAll(/>\s+</gm, '><');

export const getBinary = async () => {
const {packageJson} = await readPackageUp();
Expand Down

0 comments on commit f826233

Please sign in to comment.