@@ -11,9 +11,11 @@ describe('Export Snippet utilities', () => {
1111 const result = getExportSnippet ( 'markdown' , queryString ) ;
1212
1313 expect ( typeof result ) . toBe ( 'string' ) ;
14- expect ( result . startsWith ( '![CommitPulse]' ) ) . toBe ( true ) ;
14+ expect ( result . startsWith ( '![CommitPulse Contribution Graph for testuser ]' ) ) . toBe ( true ) ;
1515 expect ( result ) . toContain ( EXPECTED_BASE_URL ) ;
16- expect ( result ) . toBe ( `` ) ;
16+ expect ( result ) . toBe (
17+ ``
18+ ) ;
1719 } ) ;
1820
1921 it ( 'generates html snippet' , ( ) => {
@@ -23,7 +25,9 @@ describe('Export Snippet utilities', () => {
2325 expect ( typeof result ) . toBe ( 'string' ) ;
2426 expect ( result . startsWith ( '<img src=' ) ) . toBe ( true ) ;
2527 expect ( result ) . toContain ( EXPECTED_BASE_URL ) ;
26- expect ( result ) . toBe ( `<img src="${ EXPECTED_BASE_URL } ?${ queryString } " alt="CommitPulse" />` ) ;
28+ expect ( result ) . toBe (
29+ `<img src="${ EXPECTED_BASE_URL } ?${ queryString } " alt="CommitPulse Contribution Graph for testuser" />`
30+ ) ;
2731 } ) ;
2832
2933 it ( 'generates action snippet' , ( ) => {
@@ -41,7 +45,7 @@ describe('Export Snippet utilities', () => {
4145 const markdownResult = getExportSnippet ( 'markdown' , emptyQuery ) ;
4246 const htmlResult = getExportSnippet ( 'html' , emptyQuery ) ;
4347
44- expect ( markdownResult . startsWith ( '![CommitPulse]' ) ) . toBe ( true ) ;
48+ expect ( markdownResult . startsWith ( '![CommitPulse Contribution Graph ]' ) ) . toBe ( true ) ;
4549 expect ( markdownResult ) . toContain ( EXPECTED_BASE_URL ) ;
4650
4751 expect ( htmlResult . startsWith ( '<img src=' ) ) . toBe ( true ) ;
@@ -60,7 +64,9 @@ describe('Export Snippet utilities', () => {
6064 const result = getExportSnippet ( 'markdown' , complexQuery ) ;
6165
6266 expect ( result ) . toContain ( complexQuery ) ;
63- expect ( result ) . toBe ( `` ) ;
67+ expect ( result ) . toBe (
68+ ``
69+ ) ;
6470 } ) ;
6571
6672 it ( 'throws error for unknown format' , ( ) => {
@@ -73,7 +79,9 @@ describe('Export Snippet utilities', () => {
7379 it ( 'includes placeholder username in markdown' , ( ) => {
7480 const result = getPlaceholderSnippet ( 'markdown' ) ;
7581
76- expect ( result . startsWith ( '![CommitPulse]' ) ) . toBe ( true ) ;
82+ expect ( result . startsWith ( '![CommitPulse Contribution Graph for your-github-username]' ) ) . toBe (
83+ true
84+ ) ;
7785 expect ( result ) . toContain ( 'your-github-username' ) ;
7886 expect ( result ) . toContain ( EXPECTED_BASE_URL ) ;
7987 } ) ;
0 commit comments