mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user