@@ -19,8 +19,8 @@ t.test('UI serving', (t: Test) => {
1919
2020 t . equal ( redirectStatus , 301 )
2121 t . equal ( redirectBody , '' )
22- t . true ( defaultBody . indexOf ( 'url: "/docs/openapi.json",' ) > 0 )
23- t . true ( indexBody . indexOf ( 'url: "/docs/openapi.json",' ) > 0 )
22+ t . ok ( defaultBody . indexOf ( 'url: "/docs/openapi.json",' ) > 0 )
23+ t . ok ( indexBody . indexOf ( 'url: "/docs/openapi.json",' ) > 0 )
2424 t . equal ( defaultBody , indexBody )
2525 } )
2626
@@ -52,8 +52,8 @@ t.test('UI serving', (t: Test) => {
5252
5353 t . equal ( redirectStatus , 301 )
5454 t . equal ( redirectBody , '' )
55- t . true ( defaultBody . indexOf ( 'url: "/another/openapi.json",' ) > 0 )
56- t . true ( indexBody . indexOf ( 'url: "/another/openapi.json",' ) > 0 )
55+ t . ok ( defaultBody . indexOf ( 'url: "/another/openapi.json",' ) > 0 )
56+ t . ok ( indexBody . indexOf ( 'url: "/another/openapi.json",' ) > 0 )
5757 t . equal ( defaultBody , indexBody )
5858 } )
5959
@@ -73,14 +73,14 @@ t.test('UI serving', (t: Test) => {
7373
7474 t . equal ( redirectStatus , 301 )
7575 t . equal ( redirectBody , '' )
76- t . true ( defaultBody . indexOf ( 'url: "/v1/openapi.json",' ) > 0 )
77- t . true ( indexBody . indexOf ( 'url: "/v1/openapi.json",' ) > 0 )
76+ t . ok ( defaultBody . indexOf ( 'url: "/v1/openapi.json",' ) > 0 )
77+ t . ok ( indexBody . indexOf ( 'url: "/v1/openapi.json",' ) > 0 )
7878 t . equal ( defaultBody , indexBody )
7979
8080 t . equal ( redirectStatusv2 , 301 )
8181 t . equal ( redirectBodyv2 , '' )
82- t . true ( defaultBodyv2 . indexOf ( 'url: "/v2/openapi.json",' ) > 0 )
83- t . true ( indexBodyv2 . indexOf ( 'url: "/v2/openapi.json",' ) > 0 )
82+ t . ok ( defaultBodyv2 . indexOf ( 'url: "/v2/openapi.json",' ) > 0 )
83+ t . ok ( indexBodyv2 . indexOf ( 'url: "/v2/openapi.json",' ) > 0 )
8484 t . equal ( defaultBodyv2 , indexBodyv2 )
8585 } )
8686
0 commit comments