From 3ebb3a347978b526bc8104d83fa42e1ab5099fa2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 27 Oct 2020 08:05:10 -0400 Subject: [PATCH] fix: missing method in test error output --- test/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api.js b/test/api.js index 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 now response[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 + ')'); }); } });