File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ it('github-corners test case', async () => {
8686 document : { } ,
8787 } ) ;
8888 expect ( html . indexOf ( '<dark-mode style=' ) > 0 ) . toBeTruthy ( ) ;
89- expect ( html . indexOf ( '<github-corners target="__blank "' ) > 0 ) . toBeTruthy ( ) ;
89+ expect ( html . indexOf ( '<a xlink:href= "' ) > 0 ) . toBeTruthy ( ) ;
9090 expect ( html . indexOf ( 'max-width: 960px; margin: 0 auto 60px auto; padding: 8px' ) > 0 ) . toBeTruthy ( ) ;
9191 expect ( html . indexOf ( 'class="markdown-style"' ) > 0 ) . toBeTruthy ( ) ;
9292
@@ -95,7 +95,7 @@ it('github-corners test case', async () => {
9595 'github-corners' : 'https://github.com/jaywcjlove/markdown-to-html-cli' ,
9696 document : undefined ,
9797 } ) ;
98- expect ( html . indexOf ( '<github-corners target="__blank" position="fixed" z-index="999" href="https://github.com/jaywcjlove/markdown-to-html-cli"></github-corners> ' ) > 0 ) . toBeTruthy ( ) ;
98+ expect ( html . indexOf ( '<a xlink: href="https://github.com/jaywcjlove/markdown-to-html-cli"' ) > 0 ) . toBeTruthy ( ) ;
9999 expect ( html . indexOf ( 'https://github.com/jaywcjlove/markdown-to-html-cli' ) > - 1 ) . toBeTruthy ( ) ;
100100
101101 html = create ( {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ console.log = jest.fn();
1212it ( 'githubCorners test case' , async ( ) => {
1313 expect ( githubCorners ( { } ) ) . toBeUndefined ( ) ;
1414 expect ( githubCornersFork ( { } ) ) . toBeUndefined ( ) ;
15- expect ( Object . keys ( githubCorners ( { href : 'https://github.com/jaywcjlove/markdown-to-html-cli' } ) ) ) . toEqual ( expect . arrayContaining ( [ "0" , "1" ] ) ) ;
15+ expect ( Object . keys ( githubCorners ( { href : 'https://github.com/jaywcjlove/markdown-to-html-cli' } ) ) ) . toEqual ( expect . arrayContaining ( [ "0" ] ) ) ;
1616} ) ;
1717
1818it ( 'copyElement test case' , async ( ) => {
You can’t perform that action at this time.
0 commit comments