Node.js based forum software built for the modern web
fix: missing method in test error output
Julian Lam3ebb3a347978
diff --git a/test/api.js b/test/api.jsindex d26c60ff9f..837e0f8190 100644--- a/test/api.js+++ b/test/api.js@@ -324,7 +324,7 @@ describe('Read API', async () => {});} else if (response[prop].length) { // for nowresponse[prop].forEach((item) => {- assert.strictEqual(typeof item, schema[prop].items.type, '"' + prop + '" should have ' + schema[prop].items.type + ' items, but found ' + typeof items + ' instead (path: ' + path + ', context: ' + context + ')');+ assert.strictEqual(typeof item, schema[prop].items.type, '"' + prop + '" should have ' + schema[prop].items.type + ' items, but found ' + typeof items + ' instead (path: ' + method + ' ' + path + ', context: ' + context + ')');});}}@@ -339,7 +339,7 @@ describe('Read API', async () => {return;}- assert(schema[prop], '"' + prop + '" was found in response, but is not defined in schema (path: ' + path + ', context: ' + context + ')');+ assert(schema[prop], '"' + prop + '" was found in response, but is not defined in schema (path: ' + method + ' ' + path + ', context: ' + context + ')');});}});