Skip to content

Commit aee630d

Browse files
committed
chore: update
1 parent 075c71d commit aee630d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/integration/asset/index.test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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!, /index\.js/);
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-
/index\.js/,
219-
);
214+
const { content: indexJs } = queryContent(contents.esm0!, /index\.js/);
220215
expect(indexJs).toMatchInlineSnapshot(`
221216
"var __webpack_module_cache__ = {};
222217
function __webpack_require__(moduleId) {

0 commit comments

Comments
 (0)