Skip to content

Improvement: BB-779 #951

Improvement: BB-779

Improvement: BB-779 #951

GitHub Actions / Mocha Tests failed Jan 13, 2024 in 0s

Mocha Tests ❌

Tests failed

❌ test-results.json

820 tests were completed in 175s with 815 passed, 5 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/src/api/common-tests.js 7✅ 94ms
test/src/api/routes/test-author.js 17✅ 297ms
test/src/api/routes/test-edition-group.js 16✅ 133ms
test/src/api/routes/test-edition.js 23✅ 576ms
test/src/api/routes/test-publisher.js 22✅ 413ms
test/src/api/routes/test-search.js 6✅ 299ms
test/src/api/routes/test-series.js 17✅ 181ms
test/src/api/routes/test-work.js 20✅ 95s
test/src/client/entity-editor/create-edition.js 1✅ 5ms
test/src/client/entity-editor/validators/test-alias.js 34✅ 5ms
test/src/client/entity-editor/validators/test-author.js 58✅ 6ms
test/src/client/entity-editor/validators/test-edition.js 103✅ 11ms
test/src/client/entity-editor/validators/test-identifier.js 36✅ 1ms
test/src/client/entity-editor/validators/test-name-section.js 27✅ 1ms
test/src/client/entity-editor/validators/test-publication.js 22✅ 2ms
test/src/client/entity-editor/validators/test-publisher.js 44✅ 1ms
test/src/client/entity-editor/validators/test-series.js 25✅ 3ms
test/src/client/entity-editor/validators/test-submission-section.js 10✅ 1ms
test/src/client/entity-editor/validators/test-work.js 29✅ 3ms
test/src/client/unified-form/validators/test-cover-tab.js 4✅ 0ms
test/src/client/unified-form/validators/test-detail-tab.js 2✅ 0ms
test/src/server/helpers/collections.js 10✅ 46ms
test/src/server/helpers/revisions.js 20✅ 634ms
test/src/server/helpers/utils.js 15✅ 5❌ 79ms
test/src/server/routes/collection.js 54✅ 4s
test/src/server/routes/editor.js 8✅ 35ms
test/src/server/routes/entity/author.js 10✅ 3s
test/src/server/routes/entity/edition-group.js 10✅ 2s
test/src/server/routes/entity/edition.js 10✅ 264ms
test/src/server/routes/entity/entity.js 16✅ 359ms
test/src/server/routes/entity/publisher.js 10✅ 221ms
test/src/server/routes/entity/series.js 10✅ 2s
test/src/server/routes/entity/work.js 10✅ 2s
test/src/server/routes/merge.js 12✅ 4s
test/src/server/routes/relationship.js 3✅ 2s
test/src/server/routes/revision.js 4✅ 28ms
test/src/server/routes/type-editor/identifier-type.js 11✅ 81ms
test/src/server/routes/type-editor/relationship-type.js 11✅ 92ms
test/src/server/routes/unifiedform.js 10✅ 737ms
test/test-achievement.js 48✅ 443ms
test/test-render-relationship.js 6✅ 1ms
test/test-site.js 4✅ 25ms

❌ test/src/server/helpers/utils.js

Convert ISBNs
  ✅ should return null if isbn10 not valid
  ✅ should return null if isbn13 not valid
  ✅ should return valid isbn10 from isbn13
  ✅ should return valid isbn13 from isbn10
generateIdenfierState
  ✅ should return correctly formatted identifier state
getIdByField
  ✅ should return null if item does not exists
  ✅ should return the ID for an existing item
getNextEnabledAndResultsArray
  ✅ should return an array of required length and nextEnabled:false when results.length < size
  ✅ should return an array of required length and nextEnabled:false when results.length = 0
  ✅ should return an array of required length and nextEnabled:false when results.length = size
  ✅ should return an array of required length and nextEnabled:true when results.length > size
  ✅ should return an array of required length and nextEnabled:true when results.length > size and results.length - size > 1
parseLanguages
  ✅ should return correctly formatted languages state
searchOption
  ✅ should return correct option if match found
  ✅ should return null if no exact match found
stringToHTMLWithLinks
  ❌ should convert a string with a single http link to a clickable link
	expected undefined to equal '<span><a href="http://example.com" ta…'
  ❌ should convert a string with multiple http links to clickable links
	expected undefined to equal '<span><a href="http://example.com" ta…'
  ❌ should handle links enclosed within parentheses correctly
	expected undefined to equal '<span><span>(</span><a href="http://e…'
  ❌ should handle links with balanced parentheses correctly
	expected undefined to equal '<span><a href="https://da.wikipedia.o…'
  ❌ should handle links with balanced parentheses enclosed in a paranthesis correctly
	expected undefined to equal '<span><span>(source: </span><a href="…'

Annotations

Check failure on line 26 in test/src/server/helpers/utils.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/helpers/utils.js ► stringToHTMLWithLinks ► should convert a string with a single http link to a clickable link

Failed test found in:
  test-results.json
Error:
  expected undefined to equal '<span><a href="http://example.com" ta…'
Raw output
AssertionError: expected undefined to equal '<span><a href="http://example.com" ta…'
    at Context.<anonymous> (test/src/server/helpers/utils.js:26:27)
    at processImmediate (node:internal/timers:476:21)

Check failure on line 33 in test/src/server/helpers/utils.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/helpers/utils.js ► stringToHTMLWithLinks ► should convert a string with multiple http links to clickable links

Failed test found in:
  test-results.json
Error:
  expected undefined to equal '<span><a href="http://example.com" ta…'
Raw output
AssertionError: expected undefined to equal '<span><a href="http://example.com" ta…'
    at Context.<anonymous> (test/src/server/helpers/utils.js:33:27)
    at processImmediate (node:internal/timers:476:21)

Check failure on line 40 in test/src/server/helpers/utils.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/helpers/utils.js ► stringToHTMLWithLinks ► should handle links enclosed within parentheses correctly

Failed test found in:
  test-results.json
Error:
  expected undefined to equal '<span><span>(</span><a href="http://e…'
Raw output
AssertionError: expected undefined to equal '<span><span>(</span><a href="http://e…'
    at Context.<anonymous> (test/src/server/helpers/utils.js:40:27)
    at processImmediate (node:internal/timers:476:21)

Check failure on line 47 in test/src/server/helpers/utils.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/helpers/utils.js ► stringToHTMLWithLinks ► should handle links with balanced parentheses correctly

Failed test found in:
  test-results.json
Error:
  expected undefined to equal '<span><a href="https://da.wikipedia.o…'
Raw output
AssertionError: expected undefined to equal '<span><a href="https://da.wikipedia.o…'
    at Context.<anonymous> (test/src/server/helpers/utils.js:47:27)
    at processImmediate (node:internal/timers:476:21)

Check failure on line 54 in test/src/server/helpers/utils.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/server/helpers/utils.js ► stringToHTMLWithLinks ► should handle links with balanced parentheses enclosed in a paranthesis correctly

Failed test found in:
  test-results.json
Error:
  expected undefined to equal '<span><span>(source: </span><a href="…'
Raw output
AssertionError: expected undefined to equal '<span><span>(source: </span><a href="…'
    at Context.<anonymous> (test/src/server/helpers/utils.js:54:27)
    at processImmediate (node:internal/timers:476:21)