Skip to content

Commit

Permalink
nginx-tests: remove unnecessary res.ok assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Oct 6, 2024
1 parent 0a86737 commit 916bc1a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/test-nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ describe('nginx config', () => {
const res = await fetchHttp('/.well-known/acme-challenge');

// then
assert.isFalse(res.ok);
assert.equal(res.status, 301);
assert.equal(res.headers.get('location'), 'https://localhost:9000/.well-known/acme-challenge');
});
Expand All @@ -21,7 +20,6 @@ describe('nginx config', () => {
const res = await fetchHttps('/.well-known/acme-challenge');

// then
assert.isFalse(res.ok);
assert.equal(res.status, 404);
});

Expand All @@ -30,7 +28,6 @@ describe('nginx config', () => {
const res = await fetchHttp('/');

// then
assert.isFalse(res.ok);
assert.equal(res.status, 301);
assert.equal(res.headers.get('location'), 'https://localhost:9000/');
});
Expand Down Expand Up @@ -81,7 +78,6 @@ describe('nginx config', () => {
const res = await fetchHttps('/-/some/enketo/path');

// then
assert.isTrue(res.ok);
assert.equal(res.status, 200);
assert.equal(await res.text(), 'OK');
// and
Expand All @@ -95,7 +91,6 @@ describe('nginx config', () => {
const res = await fetchHttps('/v1/some/central-backend/path');

// then
assert.isTrue(res.ok);
assert.equal(res.status, 200);
assert.equal(await res.text(), 'OK');
// and
Expand Down

0 comments on commit 916bc1a

Please sign in to comment.