mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-06-21 17:30:13 +08:00
Fix H5 all-in-one asset paths
This commit is contained in:
10
pages/tabbar/user/my.contract.test.mjs
Normal file
10
pages/tabbar/user/my.contract.test.mjs
Normal file
@@ -0,0 +1,10 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import test from 'node:test';
|
||||
|
||||
const source = readFileSync(new URL('./my.vue', import.meta.url), 'utf8');
|
||||
|
||||
test('member center header background resolves under the H5 base path', () => {
|
||||
assert.doesNotMatch(source, /background-image:\s*url\(["']\/static\/img\/main-bg\.png["']\)/);
|
||||
assert.match(source, /background-image:\s*url\(["']\.\.\/\.\.\/\.\.\/static\/img\/main-bg\.png["']\)/);
|
||||
});
|
||||
Reference in New Issue
Block a user