mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 17:04:59 +08:00
FEATURE: out-of-the-box dark/light user selectable themes
This commit is contained in:
@ -4,6 +4,8 @@ describe StylesheetCache do
|
||||
|
||||
describe "add" do
|
||||
it "correctly cycles once MAX_TO_KEEP is hit" do
|
||||
StylesheetCache.destroy_all
|
||||
|
||||
(StylesheetCache::MAX_TO_KEEP + 1).times do |i|
|
||||
StylesheetCache.add("a", "d" + i.to_s, "c" + i.to_s, "map")
|
||||
end
|
||||
@ -13,6 +15,8 @@ describe StylesheetCache do
|
||||
end
|
||||
|
||||
it "does nothing if digest is set and already exists" do
|
||||
StylesheetCache.destroy_all
|
||||
|
||||
StylesheetCache.add("a", "b", "c", "map")
|
||||
StylesheetCache.add("a", "b", "cc", "map")
|
||||
|
||||
|
Reference in New Issue
Block a user