Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

test(ui): assert SSR root without stripping HTML comments

Timothy Yin00040771c8bc
diff --git a/tests/saas-ui.test.ts b/tests/saas-ui.test.ts
index 42f705b7..dceadadc 100644
--- a/tests/saas-ui.test.ts
+++ b/tests/saas-ui.test.ts
@@ -57,7 +57,7 @@ test('Shared buttons preserve form semantics and a single pending polymorphic li
{ asChild: true, loading: true },
() => h('a', { href: '/sites' }, 'Sites'),
)
- assert.match(pending.replace(/<!--[\s\S]*?-->/g, ''), /^<a\b/)
+ assert.match(pending, /^(?:<!--[\s\S]*?-->)*<a\b/)
assert.match(pending, /aria-busy="true"/)
assert.match(pending, /aria-disabled="true"/)
assert.match(pending, /tabindex="-1"/)