mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
chore: remove stray console log
This commit is contained in:
parent
bad5c7f236
commit
dc306cfc41
1 changed files with 1 additions and 2 deletions
|
@ -200,7 +200,6 @@ describe('Astro Actions', () => {
|
||||||
assert.equal(res.status, 401);
|
assert.equal(res.status, 401);
|
||||||
|
|
||||||
const html = await res.text();
|
const html = await res.text();
|
||||||
console.log({ html });
|
|
||||||
let $ = cheerio.load(html);
|
let $ = cheerio.load(html);
|
||||||
assert.equal($('#error-message').text(), 'Not logged in');
|
assert.equal($('#error-message').text(), 'Not logged in');
|
||||||
assert.equal($('#error-code').text(), 'UNAUTHORIZED');
|
assert.equal($('#error-code').text(), 'UNAUTHORIZED');
|
||||||
|
@ -362,7 +361,7 @@ async function followExpectedRedirect(req, app) {
|
||||||
const redirect = await app.render(req, { addCookieHeader: true });
|
const redirect = await app.render(req, { addCookieHeader: true });
|
||||||
assert.ok(
|
assert.ok(
|
||||||
validRedirectStatuses.has(redirect.status),
|
validRedirectStatuses.has(redirect.status),
|
||||||
`Expected redirect status, got ${redirect.status}`
|
`Expected redirect status, got ${redirect.status}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
const redirectUrl = new URL(redirect.headers.get('Location'), req.url);
|
const redirectUrl = new URL(redirect.headers.get('Location'), req.url);
|
||||||
|
|
Loading…
Add table
Reference in a new issue