From 605e62288c6c7529a5faf094cea5e4feaec2c008 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 16 Jan 2026 23:53:44 +0100 Subject: [PATCH] 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. --- spec/helpers/theme_helper_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/helpers/theme_helper_spec.rb b/spec/helpers/theme_helper_spec.rb index ca2295fd0c..7566cc2cba 100644 --- a/spec/helpers/theme_helper_spec.rb +++ b/spec/helpers/theme_helper_spec.rb @@ -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