@@ -16,19 +16,19 @@ describe("Markdown component", function() {
1616 it ( "allows td elements with colspan attrib" , function ( ) {
1717 const str = `<table><tr><td>ABC</td></tr></table>`
1818 const el = render ( < Markdown source = { str } /> )
19- expect ( el . html ( ) ) . toEqual ( `<div class="markdown"><table><tr><td>ABC</td></tr></table></div>` )
19+ expect ( el . html ( ) ) . toEqual ( `<div class="markdown"><table><tbody>< tr><td>ABC</td></tr></tbody ></table></div>` )
2020 } )
2121
2222 it ( "allows image elements" , function ( ) {
2323 const str = ``
2424 const el = render ( < Markdown source = { str } /> )
25- expect ( el . html ( ) ) . toEqual ( `<div class="markdown"><p><img src="http://image.source" title="Image title "></p>\n</div>` )
25+ expect ( el . html ( ) ) . toEqual ( `<div class="markdown"><p><img title="Image title" alt="Image alt text" src="http://image.source"></p>\n</div>` )
2626 } )
27-
27+
2828 it ( "allows image elements with https scheme" , function ( ) {
2929 const str = ``
3030 const el = render ( < Markdown source = { str } /> )
31- expect ( el . html ( ) ) . toEqual ( `<div class="markdown"><p><img src="https://image.source" title="Image title "></p>\n</div>` )
31+ expect ( el . html ( ) ) . toEqual ( `<div class="markdown"><p><img title="Image title" alt="Image alt text" src="https://image.source"></p>\n</div>` )
3232 } )
3333
3434 it ( "allows image elements with data scheme" , function ( ) {
@@ -52,21 +52,21 @@ describe("Markdown component", function() {
5252 it ( "allows links" , function ( ) {
5353 const str = `[Link](https://example.com/)`
5454 const el = render ( < Markdown source = { str } /> )
55- expect ( el . html ( ) ) . toEqual ( `<div class="markdown"><p><a href="https://example.com/" target="_blank ">Link</a></p>\n</div>` )
55+ expect ( el . html ( ) ) . toEqual ( `<div class="markdown"><p><a target="_blank" href="https://example.com/">Link</a></p>\n</div>` )
5656 } )
5757 } )
5858
5959 describe ( "OAS 3" , function ( ) {
6060 it ( "allows image elements" , function ( ) {
6161 const str = ``
6262 const el = render ( < OAS3Markdown source = { str } /> )
63- expect ( el . html ( ) ) . toEqual ( `<div class="renderedMarkdown"><div><p><img src="http://image.source" title="Image title "></p></div></div>` )
63+ expect ( el . html ( ) ) . toEqual ( `<div class="renderedMarkdown"><div><p><img title="Image title" alt="Image alt text" src="http://image.source"></p></div></div>` )
6464 } )
6565
6666 it ( "allows image elements with https scheme" , function ( ) {
6767 const str = ``
6868 const el = render ( < OAS3Markdown source = { str } /> )
69- expect ( el . html ( ) ) . toEqual ( `<div class="renderedMarkdown"><div><p><img src="https://image.source" title="Image title "></p></div></div>` )
69+ expect ( el . html ( ) ) . toEqual ( `<div class="renderedMarkdown"><div><p><img title="Image title" alt="Image alt text" src="https://image.source"></p></div></div>` )
7070 } )
7171
7272 it ( "allows image elements with data scheme" , function ( ) {
0 commit comments