@@ -57,14 +57,14 @@ describe('x-codeSamples for curl', () => {
5757 expect ( source ) . toEqual ( expected )
5858 } )
5959
60- test ( 'operations with required preview headers' , ( ) => {
60+ test ( 'operations with required preview headers match Shell examples ' , ( ) => {
6161 const operationsWithRequiredPreviewHeaders = nonEnterpriseDefaultVersionSchema . filter (
6262 ( operation ) => {
6363 const previews = get ( operation , 'x-github.previews' , [ ] )
6464 return previews . some ( ( preview ) => preview . required )
6565 }
6666 )
67- expect ( operationsWithRequiredPreviewHeaders . length ) . toBeGreaterThan ( 0 )
67+
6868 const operationsWithHeadersInCodeSample = operationsWithRequiredPreviewHeaders . filter (
6969 ( operation ) => {
7070 const { source : codeSample } = operation [ 'x-codeSamples' ] . find (
@@ -126,14 +126,13 @@ describe('x-codeSamples for @octokit/core.js', () => {
126126 expect ( source ) . toEqual ( expected )
127127 } )
128128
129- test ( 'operations with required preview headers' , ( ) => {
129+ test ( 'operations with required preview headers match JavaScript examples ' , ( ) => {
130130 const operationsWithRequiredPreviewHeaders = nonEnterpriseDefaultVersionSchema . filter (
131131 ( operation ) => {
132132 const previews = get ( operation , 'x-github.previews' , [ ] )
133133 return previews . some ( ( preview ) => preview . required )
134134 }
135135 )
136- expect ( operationsWithRequiredPreviewHeaders . length ) . toBeGreaterThan ( 0 )
137136
138137 // Find something that looks like the following in each code sample:
139138 /*
0 commit comments