Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pooza committed Feb 25, 2025
1 parent e9566e5 commit 17c8694
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/icalendar_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,25 @@ def test_fedi_sanitize?
end
end

def test_create_entry
def test_create_entry_normal
source = %{<a href="https://shonenjumpplus.com/episode/17106371859967525169">https://shonenjumpplus.com/episode/17106371859967525169</a><br>感想には是非、以下のタグをどうぞ!<br>#勇者アバン_42話<br>#勇者アバン_11巻 (11巻2話目にあたります)<br><br>#delmulin #更新}
sanitized = %{https://shonenjumpplus.com/episode/17106371859967525169\n感想には是非、以下のタグをどうぞ!\n#勇者アバン_42話\n#勇者アバン_11巻 (11巻2話目にあたります)\n\n#delmulin #更新}

assert_equal(sanitized, source.sanitize)
end

def test_create_entry_googlemeet
ic 111
source = %(無理はせず、スコアのある、蓄積開始後ほこらに備えましょう #頑張りましたで称号\n\n#DQW期限\n\nGoogle Meet に参加: https://meet.google.com/aaa-bbbc-ccc\n\nMeet の詳細: https://support.google.com/a/users/ans)
sanitized = %(無理はせず、スコアのある、蓄積開始後ほこらに備えましょう #頑張りましたで称号\n\n#DQW期限)

assert_equal(sanitized, source.sanitize)
end

def test_create_entry_location
ic 222
end

def test_entries
IcalendarSource.all do |source|
assert_kind_of(Enumerator, source.entries)
Expand Down

0 comments on commit 17c8694

Please sign in to comment.