Skip to content

Commit

Permalink
Adjustments pre run 11 (#36)
Browse files Browse the repository at this point in the history
* adjust tests to new version of swaggerui

* remove unused extension
  • Loading branch information
steinsiv authored Oct 31, 2024
1 parent 644f93b commit d3699c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"ghcr.io/devcontainers/features/dotnet",
"ghcr.io/devcontainers/features/node",
"ghcr.io/devcontainers/features/python",
"ghcr.io/devcontainers/features/github-cli",
"ghcr.io/devcontainers/features/github-cli"
],
"customizations": {
"vscode": {
Expand All @@ -44,14 +44,11 @@
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker",
"charliermarsh.ruff",
"ms-dotnettools.csharp",
"ritwickdey.liveserver"
"ms-dotnettools.csharp"
],
"settings": {
"gitlens.showWelcomeOnInstall": false,
"terminal.integrated.gpuAcceleration": "canvas",
"liveServer.settings.root": "/docs",
"liveServer.settings.donotShowInfoMsg": true,
"terminal.integrated.gpuAcceleration": "auto",
"terminal.integrated.shell.linux": "/usr/bin/zsh",
"terminal.integrated.defaultProfile.linux": "zsh",
"csharp.suppressBuildAssetsNotification": true
Expand Down
10 changes: 5 additions & 5 deletions ex-11/got-quote-api/test/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ test('requests the swagger "/doc" route', async (t) => {
method: 'GET',
url: '/doc',
});
t.equal(response.statusCode, 302, 'returns a status code of 302');
t.equal(response.headers.location,'./doc/static/index.html','location is to static html');
t.equal(response.statusCode, 200, 'returns a status code of 200');
t.end();

});

t.test('Request to /doc/static/index.html should render swagger doc', async (t) => {
const response = await app.inject({
method: 'GET',
url: '/doc/static/index.html',
});
t.equal(response.statusCode, 200, 'returns a status code of 200');
t.equal(response.statusCode, 302, 'returns a status code of 302');
t.equal(response.headers.location,'/doc/','location is to static html');

t.end();
});
Expand Down

0 comments on commit d3699c0

Please sign in to comment.