File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -204,19 +204,14 @@ test('set the assets public path', async () => {
204204 // 1. umd should preserve '__webpack_require__.p'
205205 const { content : indexUmdJs } = queryContent ( contents . umd ! , / i n d e x \. j s / ) ;
206206
207- expect ( indexUmdJs ) . toContain (
208- '__webpack_require__.p = "/public/path/";' ,
209- ) ;
207+ expect ( indexUmdJs ) . toContain ( '__webpack_require__.p = "/public/path/";' ) ;
210208 expect ( indexUmdJs ) . toContain (
211209 'const image_namespaceObject = __webpack_require__.p + "static/image/image.png";' ,
212210 ) ;
213211
214212 // 2. bundle
215213 // esm
216- const { content : indexJs } = queryContent (
217- contents . esm0 ! ,
218- / i n d e x \. j s / ,
219- ) ;
214+ const { content : indexJs } = queryContent ( contents . esm0 ! , / i n d e x \. j s / ) ;
220215 expect ( indexJs ) . toMatchInlineSnapshot ( `
221216 "var __webpack_module_cache__ = {};
222217 function __webpack_require__(moduleId) {
You can’t perform that action at this time.
0 commit comments