mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 12:44:34 +08:00
FEATURE: out-of-the-box dark/light user selectable themes
This commit is contained in:
@ -12,7 +12,11 @@ describe Admin::ThemesController do
|
||||
end
|
||||
|
||||
context ' .index' do
|
||||
it 'returns success' do
|
||||
it 'correctly returns themes' do
|
||||
|
||||
ColorScheme.destroy_all
|
||||
Theme.destroy_all
|
||||
|
||||
theme = Theme.new(name: 'my name', user_id: -1)
|
||||
theme.set_field(target: :common, name: :scss, value: '.body{color: black;}')
|
||||
theme.set_field(target: :desktop, name: :after_header, value: '<b>test</b>')
|
||||
|
Reference in New Issue
Block a user