mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: out-of-the-box dark/light user selectable themes
This commit is contained in:
parent
81190f5d66
commit
342ef5f81a
13 changed files with 68 additions and 35 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue