Fix tests

Vite correctly detects the three themes are the same, and picks the first one, which
is `contrast` due to how glitch-soc's theming system works.
This commit is contained in:
Claire
2026-01-16 23:53:44 +01:00
parent 40d5c00c3a
commit 605e62288c

View File

@@ -12,7 +12,7 @@ RSpec.describe ThemeHelper do
it 'returns the default theme' do
expect(html_links.first.attributes.symbolize_keys)
.to include(
href: have_attributes(value: match(/default/))
href: have_attributes(value: match(/contrast/))
)
end
end
@@ -23,7 +23,7 @@ RSpec.describe ThemeHelper do
it 'returns the default stylesheet' do
expect(html_links.last.attributes.symbolize_keys)
.to include(
href: have_attributes(value: match(/default/))
href: have_attributes(value: match(/contrast/))
)
end
end
@@ -34,7 +34,7 @@ RSpec.describe ThemeHelper do
it 'returns the theme stylesheet without color scheme information' do
expect(html_links.first.attributes.symbolize_keys)
.to include(
href: have_attributes(value: match(/default/))
href: have_attributes(value: match(/contrast/))
)
end
end