mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 01:24:33 +08:00
DEV: update more deprecated font awesome icon names (#30123)
* update more deprecated font awesome icon names * add migration to remove deprecated default for badges.icon
This commit is contained in:
@ -26,13 +26,12 @@ RSpec.describe SvgSprite do
|
||||
end
|
||||
|
||||
it "can search for a specific FA icon" do
|
||||
expect(SvgSprite.search("fa-heart")).to match(/heart/)
|
||||
expect(SvgSprite.search("poo-storm")).to match(/poo-storm/)
|
||||
expect(SvgSprite.search("this-is-not-an-icon")).to eq(false)
|
||||
end
|
||||
|
||||
it "can get a raw SVG for an icon" do
|
||||
expect(SvgSprite.raw_svg("fa-heart")).to match(/svg.*svg/) # SVG inside SVG
|
||||
expect(SvgSprite.raw_svg("heart")).to match(/svg.*svg/) # SVG inside SVG
|
||||
expect(SvgSprite.raw_svg("this-is-not-an-icon")).to eq("")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user