diff --git a/bfx-report-ui b/bfx-report-ui index 3a0e0812..bb304084 160000 --- a/bfx-report-ui +++ b/bfx-report-ui @@ -1 +1 @@ -Subproject commit 3a0e08123ba4b55ad378fa38defe41024d0de4b5 +Subproject commit bb304084e04f316d74ef6c40618feefcf6c12d09 diff --git a/package.json b/package.json index 987dbade..c5a3bbed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfx-reports-framework", - "version": "4.21.1", + "version": "4.21.2", "description": "Bitfinex reports framework", "main": "worker.js", "license": "Apache-2.0", diff --git a/test/test-cases/api-sync-mode-sqlite-test-cases.js b/test/test-cases/api-sync-mode-sqlite-test-cases.js index 35599ddd..e4993161 100644 --- a/test/test-cases/api-sync-mode-sqlite-test-cases.js +++ b/test/test-cases/api-sync-mode-sqlite-test-cases.js @@ -370,7 +370,7 @@ module.exports = ( assert.isObject(res.body.error) assert.propertyVal(res.body.error, 'code', 401) assert.propertyVal(res.body.error, 'message', 'Unauthorized') - assert.propertyVal(res.body.error, 'data', null) + assert.isObject(res.body.error.data) assert.propertyVal(res.body, 'id', 5) assert.isString(res.body.jsonrpc) }) @@ -1800,10 +1800,11 @@ module.exports = ( assert.isObject(res.body) assert.isObject(res.body.error) assert.propertyVal(res.body.error, 'code', 400) - assert.isArray(res.body.error.data) - assert.isAbove(res.body.error.data.length, 0) + assert.isObject(res.body.error.data) + assert.isArray(res.body.error.data.errorMetadata) + assert.isAbove(res.body.error.data.errorMetadata.length, 0) - res.body.error.data.forEach((item) => { + res.body.error.data.errorMetadata.forEach((item) => { assert.isObject(item) })