mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: remove debug logs in test/api.js
This commit is contained in:
@@ -390,7 +390,6 @@ describe('API', async () => {
|
||||
|
||||
try {
|
||||
if (type === 'json') {
|
||||
console.log(`calling ${url}`);
|
||||
response = await request(url, {
|
||||
method: method,
|
||||
jar: !unauthenticatedRoutes.includes(path) ? jar : undefined,
|
||||
@@ -419,12 +418,7 @@ describe('API', async () => {
|
||||
|
||||
it('response status code should match one of the schema defined responses', () => {
|
||||
// HACK: allow HTTP 418 I am a teapot, for now 👇
|
||||
try {
|
||||
assert(context[method].responses.hasOwnProperty('418') || Object.keys(context[method].responses).includes(String(response.statusCode)), `${method.toUpperCase()} ${path} sent back unexpected HTTP status code: ${response.statusCode}`);
|
||||
} catch (e) {
|
||||
console.log(response.body);
|
||||
throw e;
|
||||
}
|
||||
});
|
||||
|
||||
// Recursively iterate through schema properties, comparing type
|
||||
|
||||
Reference in New Issue
Block a user