Skip to content

Commit

Permalink
Fix formatter test
Browse files Browse the repository at this point in the history
hakanensari committed Oct 4, 2024

Verified

This commit was signed with the committer’s verified signature.
hakanensari Hakan Ensari
1 parent b15ee2b commit 121cac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/generator/formatter_test.rb
Original file line number Diff line number Diff line change
@@ -39,14 +39,14 @@ def test_format_method_definition

def test_convert_doc_links_to_full_url
text = "Refer to [API Documentation](doc:api-doc)."
expected = "Refer to {API Documentation https://developer-docs.amazon.com/sp-api/docs/api-doc}."
expected = "Refer to {https://developer-docs.amazon.com/sp-api/docs/api-doc API Documentation}."

assert_equal(expected, convert_doc_links_to_full_url(text))
end

def test_convert_html_links_to_yard
text = 'Refer to <a href="https://example.com">Example</a>.'
expected = "Refer to {Example https://example.com}."
expected = "Refer to {https://example.com Example}."

assert_equal(expected, convert_html_links_to_yard(text))
end

0 comments on commit 121cac9

Please sign in to comment.