Fix e2e tests

This commit is contained in:
Roman Hotsiy 2016-02-01 19:37:32 +02:00
parent 8b79c0c0b3
commit 8542d88523
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
}); });