test: align public image url domain

This commit is contained in:
john
2026-07-02 18:13:12 +08:00
parent 40717d8fc7
commit 30ef609eba
+2 -2
View File
@@ -215,7 +215,7 @@ test('prepareHtmlPublishContent rewrites imgproxy local image urls to public sta
},
});
assert.match(prepared, /https:\/\/m\.tkmind\.cn\/MindSpace\/user-1\/images\/2026-06-29\/hero\.jpg/);
assert.match(prepared, /https:\/\/mm\.tkmind\.cn\/MindSpace\/user-1\/images\/2026-06-29\/hero\.jpg/);
assert.doesNotMatch(prepared, /plain\/local:\/\//);
});
@@ -241,7 +241,7 @@ test('prepareHtmlPublishContent rewrites imgproxy urls in srcset and css url con
assert.match(prepared, /\/MindSpace\/user-1\/images\/2026-06-29\/thumb\.jpg 1x/);
assert.match(prepared, /\/MindSpace\/user-1\/images\/2026-06-29\/hero\.jpg 2x/);
assert.match(prepared, /url\(https:\/\/m\.tkmind\.cn\/MindSpace\/user-1\/images\/2026-06-29\/bg\.jpg\)/);
assert.match(prepared, /url\(https:\/\/mm\.tkmind\.cn\/MindSpace\/user-1\/images\/2026-06-29\/bg\.jpg\)/);
assert.doesNotMatch(prepared, /plain\/local:\/\//);
});