test: align public image domain expectations

This commit is contained in:
john
2026-07-04 00:22:45 +08:00
parent 8d6e237128
commit 42baa3e468
+2 -2
View File
@@ -264,7 +264,7 @@ test('prepareHtmlPublishContent rewrites imgproxy local image urls to public sta
},
});
assert.match(prepared, /https:\/\/mm\.tkmind\.cn\/MindSpace\/user-1\/images\/2026-06-29\/hero\.jpg/);
assert.match(prepared, /https:\/\/m\.tkmind\.cn\/MindSpace\/user-1\/images\/2026-06-29\/hero\.jpg/);
assert.doesNotMatch(prepared, /plain\/local:\/\//);
});
@@ -546,7 +546,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:\/\/mm\.tkmind\.cn\/MindSpace\/user-1\/images\/2026-06-29\/bg\.jpg\)/);
assert.match(prepared, /url\(https:\/\/m\.tkmind\.cn\/MindSpace\/user-1\/images\/2026-06-29\/bg\.jpg\)/);
assert.doesNotMatch(prepared, /plain\/local:\/\//);
});