mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Multiple SCSS file support for themes (#7351)
Theme developers can include any number of scss files within the /scss/ directory of a theme. These can then be imported from the main common/desktop/mobile scss.
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe Jobs::RebakeAllHtmlThemeFields do
|
||||
let(:theme) { Fabricate(:theme) }
|
||||
let(:theme_field) { ThemeField.create!(theme: theme, target_id: 0, name: "header", value: "<script>console.log(123)</script>") }
|
||||
|
||||
it 'extracts inline javascripts' do
|
||||
theme_field.update_attributes(value_baked: 'need to be rebaked')
|
||||
|
||||
described_class.new.execute_onceoff({})
|
||||
|
||||
theme_field.reload
|
||||
expect(theme_field.value_baked).to include('theme-javascripts')
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user