mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-06 13:00:34 +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',
|
baseDir: './tests/e2e',
|
||||||
routes: {
|
routes: {
|
||||||
'/dist': './dist',
|
'/dist': './dist',
|
||||||
'/swagger.json': './demo/swagger.json'
|
'/swagger.yml': './demo/swagger.yml'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}, done);
|
}, done);
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<script>
|
<script>
|
||||||
window.redocError = null;
|
window.redocError = null;
|
||||||
/* init redoc */
|
/* 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) {
|
Redoc.init(decodeURIComponent(url), {disableLazySchemas: true}).then(function() {}, function(err) {
|
||||||
window.redocError = err;
|
window.redocError = err;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user