refactor: improve error handling and messaging across various modules #773
Annotations
9 errors
|
test/unit/index.js ► Concurrency queue test ► Initialization with custom config negative value test:
test/unit/concurrency-Queue-test.js#L300
Failed test found in:
report.json
Error:
expected 'Concurrency Manager Error: Minimum co…' to equal 'Concurrency Manager Error: minimum co…'
|
|
test/unit/index.js ► Concurrency queue test ► Initialization with custom config retry delay value test:
test/unit/concurrency-Queue-test.js#L322
Failed test found in:
report.json
Error:
expected 'Retry Policy Error: Minimum retry del…' to equal 'Retry Policy Error: minimum retry del…'
|
|
test/unit/index.js ► Concurrency queue test ► Initialization with custom config retry limit negative value test:
test/unit/concurrency-Queue-test.js#L311
Failed test found in:
report.json
Error:
expected 'Retry Policy Error: Minimum retry lim…' to equal 'Retry Policy Error: minimum retry lim…'
|
|
test/unit/index.js ► Concurrency queue test ► Initialize with bad axios instance:
test/unit/concurrency-Queue-test.js#L253
Failed test found in:
report.json
Error:
expected 'Axios instance is not present. Initia…' to equal 'Axios instance is not present'
|
|
test/unit/index.js ► Contentstack Asset test ► Asset download test with missing url:
report.json#L0
Failed test found in:
report.json
Error:
Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/contentstack-management-javascript/contentstack-management-javascript/test/unit/index.js)
|
|
test/unit/index.js ► Contentstack Asset test ► Asset download test without url:
report.json#L0
Failed test found in:
report.json
Error:
Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/contentstack-management-javascript/contentstack-management-javascript/test/unit/index.js)
|
|
test/unit/index.js ► Contentstack ContentType test ► ContentType generate UID from content type name test:
test/unit/contentType-test.js#L88
Failed test found in:
report.json
Error:
expected [Function bound ] to throw error including 'Expected parameter name' but got 'Parameter name is required. Provide a…'
|
|
test/unit/index.js ► OAuthHandler getOauthAppAuthorization ► should throw an error when no authorizations found for the app:
report.json#L0
Failed test found in:
report.json
Error:
expected 'No authorizations found for the app. …' to equal 'No authorizations found for the app!'
|
|
test/unit/index.js ► OAuthHandler getOauthAppAuthorization ► should throw an error when no authorizations found for the current user:
report.json#L0
Failed test found in:
report.json
Error:
expected 'No authorizations found for the curre…' to equal 'No authorizations found for current u…'
|