mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-06 21:10:33 +03:00
Fix e2e tests
This commit is contained in:
parent
8b79c0c0b3
commit
8542d88523
|
@ -12,7 +12,7 @@ gulp.task('test-server', function (done) {
|
|||
baseDir: './tests/e2e',
|
||||
routes: {
|
||||
'/dist': './dist',
|
||||
'/swagger.json': './demo/swagger.json'
|
||||
'/swagger.yml': './demo/swagger.yml'
|
||||
},
|
||||
}
|
||||
}, done);
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<script>
|
||||
window.redocError = null;
|
||||
/* init redoc */
|
||||
var url = window.location.search.substr(5) || 'swagger.json';
|
||||
var url = window.location.search.substr(5) || 'swagger.yml';
|
||||
Redoc.init(decodeURIComponent(url), {disableLazySchemas: true}).then(function() {}, function(err) {
|
||||
window.redocError = err;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user