[ci] format

This commit is contained in:
tony-sull 2022-04-07 18:27:20 +00:00 committed by GitHub Actions
parent c773dcde31
commit 42e0e0fa5c
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ function isPageStyleVirtualModule(id: string) {
} }
function isRawOrUrlModule(id: string) { function isRawOrUrlModule(id: string) {
return id.match(/(\?|\&)([^=]+)(raw|url)/gm) return id.match(/(\?|\&)([^=]+)(raw|url)/gm);
} }
interface PluginOptions { interface PluginOptions {

View file

@ -75,5 +75,5 @@ describe('CSS Bundling (ESM import)', () => {
// this makes sure the styles imported with ?url were inlined // this makes sure the styles imported with ?url were inlined
let inlineCss = $('style').html().replace(/\s/g, '').replace('/n', ''); let inlineCss = $('style').html().replace(/\s/g, '').replace('/n', '');
expect(inlineCss.indexOf('p{color:purple;}')).to.be.greaterThanOrEqual(0); expect(inlineCss.indexOf('p{color:purple;}')).to.be.greaterThanOrEqual(0);
}) });
}); });