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:
Kelv
2024-12-05 15:20:02 +08:00
committed by GitHub
parent 8a89a77248
commit 1ca90c3070
15 changed files with 69 additions and 58 deletions

View File

@ -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