mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Replace more font-awesome icons in app/helpers (#30962)
This commit is contained in:
@@ -223,7 +223,7 @@ describe ApplicationHelper do
|
||||
|
||||
it 'returns an unlock icon for a unlisted visible status' do
|
||||
result = helper.visibility_icon Status.new(visibility: 'unlisted')
|
||||
expect(result).to match(/unlock/)
|
||||
expect(result).to match(/lock_open/)
|
||||
end
|
||||
|
||||
it 'returns a lock icon for a private visible status' do
|
||||
@@ -233,7 +233,7 @@ describe ApplicationHelper do
|
||||
|
||||
it 'returns an at icon for a direct visible status' do
|
||||
result = helper.visibility_icon Status.new(visibility: 'direct')
|
||||
expect(result).to match(/at/)
|
||||
expect(result).to match(/alternate_email/)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ describe StatusesHelper do
|
||||
it 'returns the correct fa icon' do
|
||||
result = helper.fa_visibility_icon(status)
|
||||
|
||||
expect(result).to match('fa-globe')
|
||||
expect(result).to match('material-globe')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -46,7 +46,7 @@ describe StatusesHelper do
|
||||
it 'returns the correct fa icon' do
|
||||
result = helper.fa_visibility_icon(status)
|
||||
|
||||
expect(result).to match('fa-unlock')
|
||||
expect(result).to match('material-lock_open')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -56,7 +56,7 @@ describe StatusesHelper do
|
||||
it 'returns the correct fa icon' do
|
||||
result = helper.fa_visibility_icon(status)
|
||||
|
||||
expect(result).to match('fa-lock')
|
||||
expect(result).to match('material-lock')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -66,7 +66,7 @@ describe StatusesHelper do
|
||||
it 'returns the correct fa icon' do
|
||||
result = helper.fa_visibility_icon(status)
|
||||
|
||||
expect(result).to match('fa-at')
|
||||
expect(result).to match('material-alternate_email')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user