mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 05:20:32 +03:00
Remove few APIs from e2e tests
This commit is contained in:
parent
accc44f0ea
commit
ab8da92578
|
@ -41,6 +41,13 @@ describe('APIs.guru specs test', ()=> {
|
||||||
|
|
||||||
// global.apisGuruList was loaded in onPrepare method of protractor config
|
// global.apisGuruList was loaded in onPrepare method of protractor config
|
||||||
let apisGuruList = global.apisGuruList;
|
let apisGuruList = global.apisGuruList;
|
||||||
|
|
||||||
|
// Remove certain APIs that are known to cause problems
|
||||||
|
delete apisGuruList['motaword.com']; // invalid (see https://github.com/BigstickCarpet/swagger-parser/issues/26)
|
||||||
|
delete apisGuruList['learnifier.com']; // allof object and no type
|
||||||
|
delete apisGuruList['googleapis.com:mirror']; // bad urls in images
|
||||||
|
delete apisGuruList['googleapis.com:discovery']; // non-string references
|
||||||
|
|
||||||
for (let apiName of Object.keys(apisGuruList)) {
|
for (let apiName of Object.keys(apisGuruList)) {
|
||||||
let apiInfo = apisGuruList[apiName].versions[apisGuruList[apiName].preferred];
|
let apiInfo = apisGuruList[apiName].versions[apisGuruList[apiName].preferred];
|
||||||
let url = apiInfo.swaggerUrl;
|
let url = apiInfo.swaggerUrl;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user