@@ -10,9 +10,11 @@ describe('Export Snippet utilities', () => {
1010 const result = getExportSnippet ( 'markdown' , queryString ) ;
1111
1212 expect ( typeof result ) . toBe ( 'string' ) ;
13- expect ( result . startsWith ( '![CommitPulse]' ) ) . toBe ( true ) ;
13+ expect ( result . startsWith ( '![CommitPulse Contribution Graph for testuser ]' ) ) . toBe ( true ) ;
1414 expect ( result ) . toContain ( EXPECTED_BASE_URL ) ;
15- expect ( result ) . toBe ( `` ) ;
15+ expect ( result ) . toBe (
16+ ``
17+ ) ;
1618 } ) ;
1719
1820 it ( 'generates html snippet' , ( ) => {
@@ -22,7 +24,9 @@ describe('Export Snippet utilities', () => {
2224 expect ( typeof result ) . toBe ( 'string' ) ;
2325 expect ( result . startsWith ( '<img src=' ) ) . toBe ( true ) ;
2426 expect ( result ) . toContain ( EXPECTED_BASE_URL ) ;
25- expect ( result ) . toBe ( `<img src="${ EXPECTED_BASE_URL } ?${ queryString } " alt="CommitPulse" />` ) ;
27+ expect ( result ) . toBe (
28+ `<img src="${ EXPECTED_BASE_URL } ?${ queryString } " alt="CommitPulse Contribution Graph for testuser" />`
29+ ) ;
2630 } ) ;
2731
2832 it ( 'generates action snippet' , ( ) => {
@@ -40,7 +44,7 @@ describe('Export Snippet utilities', () => {
4044 const markdownResult = getExportSnippet ( 'markdown' , emptyQuery ) ;
4145 const htmlResult = getExportSnippet ( 'html' , emptyQuery ) ;
4246
43- expect ( markdownResult . startsWith ( '![CommitPulse]' ) ) . toBe ( true ) ;
47+ expect ( markdownResult . startsWith ( '![CommitPulse Contribution Graph ]' ) ) . toBe ( true ) ;
4448 expect ( markdownResult ) . toContain ( EXPECTED_BASE_URL ) ;
4549
4650 expect ( htmlResult . startsWith ( '<img src=' ) ) . toBe ( true ) ;
@@ -59,7 +63,9 @@ describe('Export Snippet utilities', () => {
5963 const result = getExportSnippet ( 'markdown' , complexQuery ) ;
6064
6165 expect ( result ) . toContain ( complexQuery ) ;
62- expect ( result ) . toBe ( `` ) ;
66+ expect ( result ) . toBe (
67+ ``
68+ ) ;
6369 } ) ;
6470
6571 it ( 'throws error for unknown format' , ( ) => {
@@ -72,7 +78,9 @@ describe('Export Snippet utilities', () => {
7278 it ( 'includes placeholder username in markdown' , ( ) => {
7379 const result = getPlaceholderSnippet ( 'markdown' ) ;
7480
75- expect ( result . startsWith ( '![CommitPulse]' ) ) . toBe ( true ) ;
81+ expect ( result . startsWith ( '![CommitPulse Contribution Graph for your-github-username]' ) ) . toBe (
82+ true
83+ ) ;
7684 expect ( result ) . toContain ( 'your-github-username' ) ;
7785 expect ( result ) . toContain ( EXPECTED_BASE_URL ) ;
7886 } ) ;
0 commit comments