@@ -47,7 +47,7 @@ describe('Playground Link Extraction', () => {
4747 const result = await renderReadmeHtml ( markdown , 'test-pkg' )
4848
4949 expect ( result . playgroundLinks ) . toHaveLength ( 1 )
50- expect ( result . playgroundLinks [ 0 ] . provider ) . toBe ( 'codesandbox' )
50+ expect ( result . playgroundLinks [ 0 ] ! . provider ) . toBe ( 'codesandbox' )
5151 } )
5252 } )
5353
@@ -56,21 +56,21 @@ describe('Playground Link Extraction', () => {
5656 const markdown = `[Pen](https://codepen.io/user/pen/abc123)`
5757 const result = await renderReadmeHtml ( markdown , 'test-pkg' )
5858
59- expect ( result . playgroundLinks [ 0 ] . provider ) . toBe ( 'codepen' )
59+ expect ( result . playgroundLinks [ 0 ] ! . provider ) . toBe ( 'codepen' )
6060 } )
6161
6262 it ( 'extracts Replit links' , async ( ) => {
6363 const markdown = `[Repl](https://replit.com/@user/project)`
6464 const result = await renderReadmeHtml ( markdown , 'test-pkg' )
6565
66- expect ( result . playgroundLinks [ 0 ] . provider ) . toBe ( 'replit' )
66+ expect ( result . playgroundLinks [ 0 ] ! . provider ) . toBe ( 'replit' )
6767 } )
6868
6969 it ( 'extracts Gitpod links' , async ( ) => {
7070 const markdown = `[Open in Gitpod](https://gitpod.io/#https://github.com/user/repo)`
7171 const result = await renderReadmeHtml ( markdown , 'test-pkg' )
7272
73- expect ( result . playgroundLinks [ 0 ] . provider ) . toBe ( 'gitpod' )
73+ expect ( result . playgroundLinks [ 0 ] ! . provider ) . toBe ( 'gitpod' )
7474 } )
7575 } )
7676
@@ -83,8 +83,8 @@ describe('Playground Link Extraction', () => {
8383 const result = await renderReadmeHtml ( markdown , 'test-pkg' )
8484
8585 expect ( result . playgroundLinks ) . toHaveLength ( 2 )
86- expect ( result . playgroundLinks [ 0 ] . provider ) . toBe ( 'stackblitz' )
87- expect ( result . playgroundLinks [ 1 ] . provider ) . toBe ( 'codesandbox' )
86+ expect ( result . playgroundLinks [ 0 ] ! . provider ) . toBe ( 'stackblitz' )
87+ expect ( result . playgroundLinks [ 1 ] ! . provider ) . toBe ( 'codesandbox' )
8888 } )
8989
9090 it ( 'deduplicates same URL' , async ( ) => {
@@ -127,7 +127,7 @@ describe('Playground Link Extraction', () => {
127127 const result = await renderReadmeHtml ( markdown , 'test-pkg' )
128128
129129 expect ( result . playgroundLinks ) . toHaveLength ( 1 )
130- expect ( result . playgroundLinks [ 0 ] . provider ) . toBe ( 'stackblitz' )
130+ expect ( result . playgroundLinks [ 0 ] ! . provider ) . toBe ( 'stackblitz' )
131131 } )
132132 } )
133133} )
0 commit comments