Skip to content

Test dependencies: replace UUID package and duplicate faker package #910

Test dependencies: replace UUID package and duplicate faker package

Test dependencies: replace UUID package and duplicate faker package #910

GitHub Actions / Mocha Tests failed Nov 9, 2023 in 1s

Mocha Tests ❌

Tests failed

❌ test-results.json

597 tests were completed in 191s with 478 passed, 119 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/src/api/common-tests.js 4✅ 1❌ 62ms
test/src/api/routes/test-author.js 2❌ 11ms
test/src/api/routes/test-edition-group.js 2❌ 482ms
test/src/api/routes/test-edition.js 2❌ 23ms
test/src/api/routes/test-publisher.js 2❌ 450ms
test/src/api/routes/test-search.js 1❌ 4ms
test/src/api/routes/test-series.js 2❌ 12ms
test/src/api/routes/test-work.js 2❌ 16ms
test/src/client/entity-editor/create-edition.js 1❌ 4ms
test/src/client/entity-editor/validators/test-alias.js 34✅ 2ms
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✅ 2ms
test/src/client/entity-editor/validators/test-name-section.js 27✅ 2ms
test/src/client/entity-editor/validators/test-publication.js 22✅ 2ms
test/src/client/entity-editor/validators/test-publisher.js 44✅ 2ms
test/src/client/entity-editor/validators/test-series.js 25✅ 1ms
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✅ 1ms
test/src/client/unified-form/validators/test-detail-tab.js 2✅ 0ms
test/src/server/helpers/collections.js 2❌ 6ms
test/src/server/helpers/revisions.js 4❌ 14ms
test/src/server/helpers/utils.js 14✅ 1❌ 23ms
test/src/server/routes/collection.js 42❌ 637ms
test/src/server/routes/editor.js 3❌ 11ms
test/src/server/routes/entity/author.js 2❌ 8ms
test/src/server/routes/entity/edition-group.js 2❌ 7ms
test/src/server/routes/entity/edition.js 2❌ 8ms
test/src/server/routes/entity/entity.js 6✅ 2❌ 6ms
test/src/server/routes/entity/publisher.js 2❌ 10ms
test/src/server/routes/entity/series.js 2❌ 9ms
test/src/server/routes/entity/work.js 2❌ 8ms
test/src/server/routes/merge.js 5❌ 101s
test/src/server/routes/relationship.js 2❌ 50s
test/src/server/routes/revision.js 1❌ 4ms
test/src/server/routes/type-editor/identifier-type.js 1✅ 10❌ 65ms
test/src/server/routes/type-editor/relationship-type.js 1✅ 10❌ 53ms
test/src/server/routes/unifiedform.js 10❌ 12ms
test/test-achievement.js 48✅ 539ms
test/test-render-relationship.js 6✅ 2ms
test/test-site.js 4✅ 42ms

❌ test/src/api/common-tests.js

Common test of API
  ✅ should throw a 404 error if endpoint is not valid
  ✅ should throw a 405 error if send delete request
  ✅ should throw a 405 error if send post request
  ✅ should throw a 405 error if send put request
Lookup endpoints
  ❌ "before all" hook for "GET {entity}/{BBID}/aliases should return aliases with a specific structure"
	Cannot read properties of undefined (reading 'number')

❌ test/src/api/routes/test-author.js

Browse Author
  ❌ "before all" hook for "should throw an error if trying to browse more than one entity"
	Cannot read properties of undefined (reading 'number')
GET /Author
  ❌ "before all" hook for "should get basic information of an Author"
	Cannot read properties of undefined (reading 'number')

❌ test/src/api/routes/test-edition-group.js

Browse EditionGroup
  ❌ "before all" hook for "should return list of EditionGroups associated with the edition"
	Cannot read properties of undefined (reading 'number')
GET /EditionGroup
  ❌ "before all" hook for "should get basic information of an Edition Group"
	Cannot read properties of undefined (reading 'number')

❌ test/src/api/routes/test-edition.js

Browse Edition
  ❌ "before all" hook for "should throw an error if trying to browse more than one entity"
	Cannot read properties of undefined (reading 'number')
GET /Edition
  ❌ "before all" hook for "should get basic information of edition"
	Cannot read properties of undefined (reading 'number')

❌ test/src/api/routes/test-publisher.js

Browse Publishers
  ❌ "before all" hook for "should throw an error if trying to browse more than one entity"
	Cannot read properties of undefined (reading 'number')
GET /Publisher
  ❌ "before all" hook for "should get basic information of a Publisher"
	Cannot read properties of undefined (reading 'number')

❌ test/src/api/routes/test-search.js

GET /search
  ❌ "before all" hook for "should return search result for given query"
	Cannot read properties of undefined (reading 'number')

❌ test/src/api/routes/test-series.js

Browse Series
  ❌ "before all" hook for "should throw an error if trying to browse more than one entity"
	Cannot read properties of undefined (reading 'number')
GET /Series
  ❌ "before all" hook for "should get basic information of an Series"
	Cannot read properties of undefined (reading 'number')

❌ test/src/api/routes/test-work.js

Browse Works
  ❌ "before all" hook for "should throw an error if trying to browse more than one entity"
	Cannot read properties of undefined (reading 'number')
GET /work
  ❌ "before all" hook for "should get basic information of work"
	Cannot read properties of undefined (reading 'number')

❌ test/src/client/entity-editor/create-edition.js

Creating an Edition
  ❌ "before each" hook for "should automatically create an Edition Group if none is passed"
	Cannot read properties of undefined (reading 'number')

✅ test/src/client/entity-editor/validators/test-alias.js

validateAlias* functions validateAlias
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid language
  ✅ should reject an Object with an invalid name
  ✅ should reject an Object with an invalid primary
  ✅ should reject an Object with an invalid sort name
  ✅ should reject any other non-null data type
validateAlias* functions validateAliases
  ✅ should pass an empty Immutable.Map
  ✅ should pass an empty Object
  ✅ should pass an Immutable.Map of valid Immutable.Maps
  ✅ should pass an Object of two valid Objects
  ✅ should reject a null value
  ✅ should reject an Immutable.Map containing one invalid Immutable.Map
  ✅ should reject an Object containing one invalid Object
  ✅ should reject any other non-null data type
validateAlias* functions validateAliasLanguage
  ✅ should pass any positive integer value
  ✅ should reject a null value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateAlias* functions validateAliasName
  ✅ should pass any non-empty string value
  ✅ should reject a null value
  ✅ should reject an empty string
  ✅ should reject any non-string value
validateAlias* functions validateAliasPrimary
  ✅ should pass any boolean value
  ✅ should reject a null value
  ✅ should reject any non-boolean value
validateAlias* functions validateAliasSortName
  ✅ should pass any non-empty string value
  ✅ should reject a null value
  ✅ should reject an empty string
  ✅ should reject any non-string value

✅ test/src/client/entity-editor/validators/test-author.js

validateAuthorSection* functions validateAuthorSection
  ✅ should pass a empty value  object
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass any other non-null data type
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid area
  ✅ should reject an Object with an invalid area
  ✅ should reject an Object with an invalid begin date
  ✅ should reject an Object with an invalid end date
  ✅ should reject an Object with an invalid ended flag
  ✅ should reject an Object with an invalid gender
  ✅ should reject an Object with an invalid type
validateAuthorSection* functions validateAuthorSectionBeginArea
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid ID
  ✅ should reject any other non-null data type
validateAuthorSection* functions validateAuthorSectionBeginDate
  ✅ should pass an empty value object
  ✅ should pass an object containing a valid year and month value
  ✅ should pass an object containing a valid year value
  ✅ should pass an object containing a valid year, month and day value
  ✅ should reject all other forms of invalid dates
validateAuthorSection* functions validateAuthorSectionEndArea
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid ID
  ✅ should reject any other non-null data type
validateAuthorSection* functions validateAuthorSectionEndDate
  ✅ should pass if the begin date is empty/undefined/invalid
  ✅ should pass if the begin date occurs before the end one
  ✅ should reject if the begin date occurs after the end one
  ✅ should reject if the end date is invalid
validateAuthorSection* functions validateAuthorSectionEnded
  ✅ should pass a null value
  ✅ should pass any boolean value
  ✅ should reject any non-boolean value
validateAuthorSection* functions validateAuthorSectionGender
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateAuthorSection* functions validateAuthorSectionType
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateAuthorSection* functions validateForm
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass an Object with an empty submission section
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid alias editor
  ✅ should reject an Object with an invalid author section
  ✅ should reject an Object with an invalid identifier editor
  ✅ should reject an Object with an invalid name section
  ✅ should reject any other non-null data type

✅ test/src/client/entity-editor/validators/test-edition.js

validateEditionSection* functions validateEditionSection
  ✅ should ignore any other non-null data type
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid depth
  ✅ should reject an Object with an invalid edition group
  ✅ should reject an Object with an invalid format
  ✅ should reject an Object with an invalid height
  ✅ should reject an Object with an invalid pages
  ✅ should reject an Object with an invalid publisher
  ✅ should reject an Object with an invalid release date
  ✅ should reject an Object with an invalid status
  ✅ should reject an Object with an invalid weight
  ✅ should reject an Object with an invalid width
  ✅ should reject an Object with invalid languages
validateEditionSection* functions validateEditionSectionDepth
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateEditionSection* functions validateEditionSectionEditionGroup
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass any other non-null data type with no ID
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid ID
validateEditionSection* functions validateEditionSectionFormat
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateEditionSection* functions validateEditionSectionHeight
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateEditionSection* functions validateEditionSectionLanguage
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid value
  ✅ should reject any other non-null data type
validateEditionSection* functions validateEditionSectionLanguages
  ✅ should pass a null value
  ✅ should pass an Array of two valid Objects
  ✅ should pass an empty Array
  ✅ should pass an empty Immutable.List
  ✅ should pass an Immutable.List of valid Immutable.Maps
  ✅ should reject an Array containing one invalid Object
  ✅ should reject an Immutable.List containing one invalid Immutable.Map
  ✅ should reject any other non-null data type
validateEditionSection* functions validateEditionSectionPages
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateEditionSection* functions validateEditionSectionPublisher
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid ID
  ✅ should reject any other non-null data type
validateEditionSection* functions validateEditionSectionReleaseDate
  ✅ should pass an empty value object
  ✅ should pass an object containing a valid year and month value
  ✅ should pass an object containing a valid year value
  ✅ should pass an object containing a valid year, month and day value
  ✅ should reject all other forms of invalid dates
validateEditionSection* functions validateEditionSectionStatus
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateEditionSection* functions validateEditionSectionWeight
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateEditionSection* functions validateEditionSectionWidth
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateEditionSection* functions validateForm
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass an Object with an empty author credit editor and AC disabled
  ✅ should pass an Object with an empty submission section
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with a non empty author credit editor and AC disabled
  ✅ should reject an Object with an empty author credit editor
  ✅ should reject an Object with an invalid alias editor
  ✅ should reject an Object with an invalid author credit editor
  ✅ should reject an Object with an invalid edition section
  ✅ should reject an Object with an invalid identifier editor
  ✅ should reject an Object with an invalid name section
  ✅ should reject any other non-null data type

✅ test/src/client/entity-editor/validators/test-identifier.js

validateIdentifier* functions validateIdentifier
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid type
  ✅ should reject an Object with an invalid value
  ✅ should reject any other non-null data type
validateIdentifier* functions validateIdentifiers
  ✅ should pass an empty Immutable.Map
  ✅ should pass an empty Object
  ✅ should pass an Immutable.Map of valid Immutable.Maps
  ✅ should pass an Object of two valid Objects
  ✅ should reject a null value
  ✅ should reject an Immutable.Map containing one invalid Immutable.Map
  ✅ should reject an Object containing one invalid Object
  ✅ should reject any other non-null data type
validateIdentifier* functions validateIdentifierType with no type set
  ✅ should pass any positive integer value
  ✅ should reject a null value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateIdentifier* functions validateIdentifierType with type set
  ✅ should pass any positive integer value which is a type ID
  ✅ should reject a null value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject any positive integer value which isn't a type ID
  ✅ should reject zero
validateIdentifier* functions validateIdentifierValue with no type set
  ✅ should pass any non-empty string value
  ✅ should reject a null value
  ✅ should reject an empty string
  ✅ should reject any non-string value
validateIdentifier* functions validateIdentifierValue with type set
  ✅ should pass a non-empty string value that matches the validation regular expression
  ✅ should reject a non-empty string value that doesn't match the validation regular expression
  ✅ should reject a null value
  ✅ should reject an empty string
  ✅ should reject any non-string value

✅ test/src/client/entity-editor/validators/test-name-section.js

validateNameSection* functions validateNameSection
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid disambiguation
  ✅ should reject an Object with an invalid language
  ✅ should reject an Object with an invalid name
  ✅ should reject an Object with an invalid sort name
  ✅ should reject any other non-null data type
validateNameSection* functions validateNameSectionDisambiguation
  ✅ should pass a null value
  ✅ should pass any non-empty string value
  ✅ should reject an empty string
  ✅ should reject any non-string value
validateNameSection* functions validateNameSectionLanguage
  ✅ should pass any positive integer value
  ✅ should reject a null value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateNameSection* functions validateNameSectionName
  ✅ should pass any non-empty string value
  ✅ should reject a null value
  ✅ should reject an empty string
  ✅ should reject any non-string value
validateNameSection* functions validateNameSectionSortName
  ✅ should pass any non-empty string value
  ✅ should reject a null value
  ✅ should reject an empty string
  ✅ should reject any non-string value

✅ test/src/client/entity-editor/validators/test-publication.js

validateEditionGroupSection* functions validateEditionGroupSection
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass any other non-null data type
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid type
validateEditionGroupSection* functions validateEditionGroupSectionType
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero
validateEditionGroupSection* functions validateForm
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass an Object with an empty submission section
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid alias editor
  ✅ should reject an Object with an invalid Edition Group section
  ✅ should reject an Object with an invalid identifier editor
  ✅ should reject an Object with an invalid name section
  ✅ should reject any other non-null data type

✅ test/src/client/entity-editor/validators/test-publisher.js

validatePublisherSection* functions validateForm
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass an Object with an empty submission section
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid alias editor
  ✅ should reject an Object with an invalid identifier editor
  ✅ should reject an Object with an invalid name section
  ✅ should reject an Object with an invalid publisher section
  ✅ should reject any other non-null data type
validatePublisherSection* functions validatePublisherSection
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass any other non-null data type
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid area
  ✅ should reject an Object with an invalid begin date
  ✅ should reject an Object with an invalid end date
  ✅ should reject an Object with an invalid ended flag
  ✅ should reject an Object with an invalid type
validatePublisherSection* functions validatePublisherSectionArea
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid ID
  ✅ should reject any other non-null data type
validatePublisherSection* functions validatePublisherSectionBeginDate
  ✅ should pass an empty value object
  ✅ should pass an object containing a valid year and month value
  ✅ should pass an object containing a valid year value
  ✅ should pass an object containing a valid year, month and day value
  ✅ should reject all other forms of invalid dates
validatePublisherSection* functions validatePublisherSectionEndDate
  ✅ should pass if the begin date is empty/undefined/invalid
  ✅ should pass if the begin date occurs before the end one
  ✅ should reject if the begin date occurs after the end one
  ✅ should reject if the end date is invalid
validatePublisherSection* functions validatePublisherSectionEnded
  ✅ should pass a null value
  ✅ should pass any boolean value
  ✅ should reject any non-boolean value
validatePublisherSection* functions validatePublisherSectionType
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero

✅ test/src/client/entity-editor/validators/test-series.js

validateSeriesSection* functions validateForm
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass an Object with an empty submission section
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid alias editor
  ✅ should reject an Object with an invalid identifier editor
  ✅ should reject an Object with an invalid name section
  ✅ should reject an Object with an invalid series section
  ✅ should reject any other non-null data type
validateSeriesSection* functions validateSeriesSection
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid ordering type
  ✅ should reject an Object with an invalid series type
  ✅ should reject any other non-null data type
validateSeriesSection* functions validateSeriesSectionEntityType
  ✅ should return false if passed a invalid series type
  ✅ should return true if passed a valid series type
validateSeriesSection* functions validateSeriesSectionOrderingType
  ✅ should pass any positive integer value
  ✅ should reject a null value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero

✅ test/src/client/entity-editor/validators/test-submission-section.js

validateSubmissionSection* functions validateSubmissionSection
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass an empty note Immutable.Map
  ✅ should pass an Object with an empty note
  ✅ should reject any other non-null data type
validateSubmissionSection* functions validateSubmissionSectionNote
  ✅ should pass a null value
  ✅ should pass any non-empty string value
  ✅ should reject an empty string
  ✅ should reject any non-string value

✅ test/src/client/entity-editor/validators/test-work.js

validateWorkSection* functions validateForm
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass an Object with an empty submission section
  ✅ should reject a null value
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid alias editor
  ✅ should reject an Object with an invalid identifier editor
  ✅ should reject an Object with an invalid name section
  ✅ should reject an Object with an invalid work section
  ✅ should reject any other non-null data type
validateWorkSection* functions validateWorkSection
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should pass any other non-null data type
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid language
  ✅ should reject an Object with an invalid type
validateWorkSection* functions validateWorkSectionLanguage
  ✅ should pass a null value
  ✅ should pass a valid Immutable.Map
  ✅ should pass a valid Object
  ✅ should reject an invalid Immutable.Map
  ✅ should reject an Object with an invalid value
  ✅ should reject any other non-null data type
validateWorkSection* functions validateWorkSectionType
  ✅ should pass a null value
  ✅ should pass any positive integer value
  ✅ should reject an negative number
  ✅ should reject any non-number value
  ✅ should reject NaN
  ✅ should reject zero

✅ test/src/client/unified-form/validators/test-cover-tab.js

CoverTabValidators validateCoverTabState
  ✅ should be false for modified cover tab state
  ✅ should be true for unmodified cover tab state
CoverTabValidators validateISBNState
  ✅ should be false for invalid isbn type
  ✅ should be true for valid isbn type

✅ test/src/client/unified-form/validators/test-detail-tab.js

DetailTabValidators
  ✅ should be false for modified detail-tab state
  ✅ should be true for unmodified detail-tab state

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

getOrderedCollectionsForEditorPage
  ❌ "before all" hook for "should return collections with expected keys"
	Cannot read properties of undefined (reading 'number')
getOrderedPublicCollections
  ❌ "before all" hook for "should return collections with expected keys"
	Cannot read properties of undefined (reading 'number')

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

getAssociatedEntityRevisions
  ❌ "before each" hook for "should return formatted revisions array after adding entity (1 revision with 1 entity revised)"
	Cannot read properties of undefined (reading 'number')
getOrderedRevisionForEditorPage
  ❌ "before all" hook for "should return sorted revisions with the expected keys"
	Cannot read properties of undefined (reading 'number')
getOrderedRevisions
  ❌ "before all" hook for "should return sorted revisions with the expected keys"
	Cannot read properties of undefined (reading 'number')
getOrderedRevisionsForEntityPage
  ❌ "before all" hook for "should return ordered revisions with expected keys (Author Revision)"
	Cannot read properties of undefined (reading 'number')

❌ 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
	Cannot read properties of undefined (reading 'number')
  ✅ should return null if no exact match found

❌ test/src/server/routes/collection.js

POST /collection/:collectionID/add
  ❌ should be able to add multiple items
	Cannot read properties of undefined (reading 'get')
  ❌ should be able to add to my own collection
	Cannot read properties of undefined (reading 'get')
  ❌ should be able to add to private collection I"m collaborator of
	Cannot read properties of undefined (reading 'number')
  ❌ should be able to add to public collection I"m collaborator of
	Cannot read properties of undefined (reading 'number')
  ❌ should not add duplicate items
	Cannot read properties of undefined (reading 'get')
  ❌ should not be able to add to a private collection I’m not a collaborator of
	Cannot read properties of undefined (reading 'number')
  ❌ should not be able to add to a public collection I’m not a collaborator of
	Cannot read properties of undefined (reading 'number')
  ❌ should throw an error when trying to add an entity of type different than the collection type
	Cannot read properties of undefined (reading 'get')
  ❌ should throw an error when trying to add an entity that does not exist
	Cannot read properties of undefined (reading 'get')
  ❌ should throw an error when trying to add entity with invalid bbid
	Cannot read properties of undefined (reading 'get')
  ❌ should throw error for empty bbid array
	Cannot read properties of undefined (reading 'get')
POST /collection/:collectionID/remove
  ❌ should be able to remove from my own collection
	Cannot read properties of undefined (reading 'get')
  ❌ should be able to remove from private collection I"m collaborator of
	Cannot read properties of undefined (reading 'number')
  ❌ should be able to remove from public collection I"m collaborator of
	Cannot read properties of undefined (reading 'number')
  ❌ should be able to remove multiple items
	Cannot read properties of undefined (reading 'get')
  ❌ should not be able to remove from a private collection I’m not a collaborator of
	Cannot read properties of undefined (reading 'number')
  ❌ should not be able to remove from a public collection I’m not a collaborator of
	Cannot read properties of undefined (reading 'number')
  ❌ should throw error for empty bbid array
	Cannot read properties of undefined (reading 'get')
  ❌ should throw error when trying to remove an entity that do not exist in the collection
	Cannot read properties of undefined (reading 'get')
  ❌ should throw error when trying to remove an entity with invalid bbid
	Cannot read properties of undefined (reading 'get')
POST /collection/collectionID/collaborator/remove
  ❌ should allow collaborator to stop collaboration
	Cannot read properties of undefined (reading 'number')
  ❌ should allow the owner to remove collaborators
	Cannot read properties of undefined (reading 'get')
  ❌ should throw error if a collaborator tries to remove another collaborator
	Cannot read properties of undefined (reading 'number')
  ❌ should throw error if collaboratorIds array is empty
	Cannot read properties of undefined (reading 'get')
  ❌ should throw error when trying to remove incorrect collaborator
	Cannot read properties of undefined (reading 'get')
  ❌ should throw error when unauthorized (neither collaborator nor owner) tries to remove collaborators
	Cannot read properties of undefined (reading 'number')
POST /collection/collectionID/delete
  ❌ should be able to delete my collection
	Cannot read properties of undefined (reading 'get')
  ❌ should delete all the collaborators along with the collection
	Cannot read properties of undefined (reading 'get')
  ❌ should delete all the items along with the collection
	Cannot read properties of undefined (reading 'get')
  ❌ should not allow collaborator to delete the collection
	Cannot read properties of undefined (reading 'number')
  ❌ should not allow unauthorized user to delete the collection
	Cannot read properties of undefined (reading 'number')
  ❌ should remove collection from ES index
	Cannot read properties of undefined (reading 'get')
POST /collection/create
  ❌ should add the collection in the ES index
	expected +0 to equal 1
  ❌ should correctly add collaborators in the collection
	Cannot read properties of undefined (reading 'number')
  ❌ should correctly create collection and return with status code 200 for correct data
	Undefined binding(s) detected when compiling SELECT. Undefined column(s): [bookbrainz.user_collection.id] query: select "bookbrainz"."user_collection".* from "bookbrainz"."user_collection" where "bookbrainz"."user_collection"."id" = ? limit ?
  ❌ should correctly create Edition-Group collection and return with status code 200 for correct data
	Undefined binding(s) detected when compiling SELECT. Undefined column(s): [bookbrainz.user_collection.id] query: select "bookbrainz"."user_collection".* from "bookbrainz"."user_collection" where "bookbrainz"."user_collection"."id" = ? limit ?
  ❌ should throw error for empty collection name
	expected 401 to equal 400
  ❌ should throw error for incorrect collaborator id (collaborator does not exist)
	expected 401 to equal 404
  ❌ should throw error for incorrect entityType
	expected 401 to equal 400
  ❌ should throw error for invalid collaborator id (negative number)
	expected 401 to equal 400
  ❌ should throw error for invalid collaborator id (string)
	expected 401 to equal 400
POST collection/edit
  ❌ "before all" hook for "should correctly update the collection and return 200 status code"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/editor.js

Editor with Administrator priv
  ❌ "before each" hook for "should be able to edit privs of an editor"
	Cannot read properties of undefined (reading 'userName')
Editor without Administrator priv
  ❌ "before each" hook for "should not be able to edit privs of an editor"
	Cannot read properties of undefined (reading 'userName')
getEditorActivity
  ❌ "before each" hook for "should not throw error when editor has zero revisions"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/entity/author.js

Author routes with entity editing priv
  ❌ "before all" hook for "should throw an error if requested BBID is invalid"
	Cannot read properties of undefined (reading 'number')
Author routes without entity editing priv
  ❌ "before all" hook for "should throw an error if trying to open author create page"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/entity/edition-group.js

Edition Group routes with entity editing priv
  ❌ "before all" hook for "should throw an error if requested BBID is invalid"
	Cannot read properties of undefined (reading 'number')
Edition Group routes without entity editing priv
  ❌ "before all" hook for "should throw an error if trying to open edition-group create page"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/entity/edition.js

Edition routes with entity editing priv
  ❌ "before all" hook for "should throw an error if requested BBID is invalid"
	Cannot read properties of undefined (reading 'number')
Edition routes without entity editing priv
  ❌ "before all" hook for "should throw an error if trying to open edition create page"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/entity/entity.js

deleteRelationships
  ❌ "before all" hook for "it should return an empty array if there are no relationships to delete"
	Cannot read properties of undefined (reading 'number')
getDefaultAliasIndex
  ✅ should return 0 if there is no defaultAliasId and no alias marked as default
  ✅ should return null if there are no aliases in the aliasSet
  ✅ should return null if there is not aliasSet
  ✅ should return the index of the alias matching the set's defaultAliasId
  ✅ should return the index of the alias matching the set's defaultAliasId if it is a string
  ✅ should return the index of the first alias marked as default if there is no defaultAliasId
processMergeOperation
  ❌ "before all" hook for "should throw an error if there is no mergingEntities in the mergeQueue"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/entity/publisher.js

Publisher routes with entity editing priv
  ❌ "before all" hook for "should throw an error if requested BBID is invalid"
	Cannot read properties of undefined (reading 'number')
Publisher routes without entity editing priv
  ❌ "before all" hook for "should throw an error if trying to open publisher create page"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/entity/series.js

Series routes with entity editing priv
  ❌ "before all" hook for "should throw an error if requested BBID is invalid"
	Cannot read properties of undefined (reading 'number')
Series routes without entity editing priv
  ❌ "before all" hook for "should throw an error if trying to open series create page"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/entity/work.js

Work routes with entity editing priv
  ❌ "before all" hook for "should throw an error if requested BBID is invalid"
	Cannot read properties of undefined (reading 'number')
Work routes without entity editing priv
  ❌ "before all" hook for "should throw an error if trying to open work create page"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/merge.js

Merge routes with entity editing priv /add route
  ❌ "after all" hook for "should recreate the merge queue if adding another entity type"
	Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/merge.js)
  ❌ "before all" hook for "should throw an 400 error if adding an invalid BBID"
	Cannot read properties of undefined (reading 'number')
Merge routes with entity editing priv /cancel route
  ❌ "after all" hook for "should clear the merge queue"
	Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/merge.js)
  ❌ "before all" hook for "should clear the merge queue"
	Cannot read properties of undefined (reading 'number')
Merge routes without entity editing priv /add route
  ❌ "before all" hook for "should throw a 403 error if adding an invalid BBID"
	Cannot read properties of undefined (reading 'number')

❌ test/src/server/routes/relationship.js

Relationship
  ❌ "after all" hook for "should be able to add new relationships without having previous relationships"
	Timeout of 50000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/bookbrainz-site/bookbrainz-site/test/src/server/routes/relationship.js)
  ❌ "before all" hook for "should be able to add relationship on an entity"
	Cannot read properties of undefined (reading 'userName')

❌ test/src/server/routes/revision.js

checkValidRevisionId
  ❌ "before all" hook for "should not throw an error when revision id is valid and found"
	Cannot read properties of undefined (reading 'userName')

❌ test/src/server/routes/type-editor/identifier-type.js

Identifier Type routes with Identifier Editor priv
  ❌ should be able to correctly update the Identifier type and return status code 200
	expected 1 to equal undefined
  ❌ should be able to create a new Identifier type and return with status code 200
	Undefined binding(s) detected when compiling SELECT. Undefined column(s): [bookbrainz.identifier_type.id] query: select "bookbrainz"."identifier_type".* from "bookbrainz"."identifier_type" where "bookbrainz"."identifier_type"."id" = ? limit ?
  ❌ should not throw an error while accessing Identifier Type Editor to create new Identifier type
	expected false to be true
  ❌ should not throw an error while accessing Identifier Type Editor to edit an existing Identifier type
	expected false to be true
  ❌ should throw a 404 error when trying to access Identifier Type Editor with a non-existent id
	expected { Object (_events, _eventsCount, ...) } to have status code 404 but got 401
  ✅ should throw an error when trying to access Identifier Type Editor with an invalid id
Identifier Type routes without Identifier Editor priv
  ❌ should not be able to create a new Identifier type
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401
  ❌ should not be able to update a Identifier type
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401
  ❌ should throw an error when trying to access Identifier Type Editor with a non-existent id
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401
  ❌ should throw an error while accessing Identifier Type Editor to create new Identifier type
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401
  ❌ should throw an error while accessing Identifier Type Editor to edit an existing Identifier type
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401

❌ test/src/server/routes/type-editor/relationship-type.js

Relationship Type routes with Relationship Editor priv
  ❌ should be able to correctly update the relationship type and return status code 200
	expected 1 to equal undefined
  ❌ should be able to create a new relationship type and return with status code 200
	Undefined binding(s) detected when compiling SELECT. Undefined column(s): [bookbrainz.relationship_type.id] query: select "bookbrainz"."relationship_type".* from "bookbrainz"."relationship_type" where "bookbrainz"."relationship_type"."id" = ? limit ?
  ❌ should not throw an error while accessing Relationship Type Editor to create new relationship type
	expected false to be true
  ❌ should not throw an error while accessing Relationship Type Editor to edit an existing relationship type
	expected false to be true
  ❌ should throw a 404 error when trying to access Relationship Type Editor with a non-existent id
	expected { Object (_events, _eventsCount, ...) } to have status code 404 but got 401
  ✅ should throw an error when trying to access Relationship Type Editor with an invalid id
Relationship Type routes without Relationship Editor priv
  ❌ should not be able to create a new relationship type
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401
  ❌ should not be able to update a relationship type
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401
  ❌ should throw an error when trying to access Relationship Type Editor with a non-existent id
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401
  ❌ should throw an error while accessing Relationship Type Editor to create new relationship type
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401
  ❌ should throw an error while accessing Relationship Type Editor to edit an existing relationship type
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401

❌ test/src/server/routes/unifiedform.js

Unified form routes with entity editing priv
  ❌ should not throw error when linking existing works to edition
	Cannot read properties of undefined (reading 'id')
  ❌ should not throw error while adding relationship to single entity
	Cannot read properties of undefined (reading 'id')
  ❌ should not throw error while creating multiple entities
	Cannot read properties of undefined (reading 'id')
  ❌ should not throw error while creating single entity
	Cannot read properties of undefined (reading 'id')
  ❌ should not throw error while editing single entity
	expected { Object (_events, _eventsCount, ...) } to have status code 200 but got 401
  ❌ should not throw error while linking existing author to edition using AC
	Cannot read properties of undefined (reading 'id')
  ❌ should not throw error while linking existing edition-group to edition
	Cannot read properties of undefined (reading 'id')
  ❌ should not throw error while linking existing publisher to edition
	Cannot read properties of undefined (reading 'id')
  ❌ should throw bad request error while posting invalid form
	expected { Object (_events, _eventsCount, ...) } to have status code 400 but got 401
Unified form routes without entity editing priv
  ❌ should throw an error if trying to open unified form create page
	expected { Object (_events, _eventsCount, ...) } to have status code 403 but got 401

✅ test/test-achievement.js

achievement module Author Creator Achievement
  ✅ I should be given to someone with an author creation
  ✅ II should be given to someone with 10 author creations
  ✅ III should be given to someone with 100 author creations
  ✅ should not be given to someone with 0 author creations
achievement module awardAchievement
  ✅ should award achievements
  ✅ should reject invalid achievements
  ✅ should reject invalid editors
achievement module awardTitle
  ✅ should award titles
  ✅ should reject invalid editors
  ✅ should reject invalid titles
achievement module Explorer Achievement
  ✅ I should be given to someone with 10 entity views
  ✅ I should not be given to someone with 9 entity views
  ✅ II should be given to someone with 100 entity views
  ✅ III should be given to someone with 1000 entity views
achievement module Fun Runner Achievement
  ✅ should be given to someone with a revision a day for a week
  ✅ shouldn't be given to someone without a revision a day for a week
achievement module Hot Off the Press Achievement
  ✅ should be given to someone with edition revision released this week
  ✅ shouldn't be given when edition revision released a week ago
achievement module Limited Edition Achievement
  ✅ I should given to someone with an edition creation
  ✅ II should be given to someone with 10 edition creations
  ✅ III should be given to someone with 100 edition creations
  ✅ should not given to someone with 0 edition creations
achievement module Marathoner Achievement
  ✅ should be given to someone with a revision a day for 30 days
  ✅ shouldn't be given to someone without a revision a day for 30 days
achievement module Publisher Achievement
  ✅ I should be given to someone with an edition group creation
  ✅ II should be given to someone with 10 edition groups creations
  ✅ III should be given to someone with 100 edition groups creations
  ✅ should not be given to someone with 0 edition group creation
achievement module Publisher Creator Achievement
  ✅ I should be given to someone with a publisher creation
  ✅ II should be given to someone with 10 publisher creations
  ✅ III should be given to someone with 100 publisher creations
  ✅ should not be given to someone with 0 publisher creations
achievement module Revisionist Achievement
  ✅ I should be given to someone with a revision
  ✅ II should be given to someone with 50 revisions
  ✅ III should be given to someone with 250 revisions
  ✅ should not be given to someone without a revision
achievement module Series Creator Achievement
  ✅ I should be given to someone with a series creation
  ✅ II should be given to someone with 10 series creations
  ✅ III should be given to someone with 100 series creations
  ✅ should not be given to someone with 0 series creations
achievement module Sprinter Achievement
  ✅ should be given to someone with 10 revisions in an hour
  ✅ should not be given to someone with 9 revisions in an hour
achievement module Time Traveller Achievement
  ✅ should be given to someone with edition revision released after today
  ✅ shouldn't be given to someone with edition revision already released
achievement module Worker Bee Achievement
  ✅ I should be given to someone with a work creation
  ✅ II should be given to someone with 10 work creations
  ✅ III should be given to someone with 100 work creations
  ✅ should not be given to someone with 0 work creations

✅ test/test-render-relationship.js

renderRelationship
  ✅ renders a fully specified relationship
  ✅ renders a fully specified relationship with numeric bbids
  ✅ renders a relationship where the source entity is unnamed
  ✅ throws on a null link phrase
  ✅ throws on null entities
  ✅ works with an empty link phrase

✅ test/test-site.js

GET /
  ✅ should return 200
GET /about
  ✅ should return 200
GET /contribute
  ✅ should return 200
GET /develop
  ✅ should return 200

Annotations

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/common-tests.js ► Lookup endpoints ► "before all" hook for "GET {entity}/{BBID}/aliases should return aliases with a specific structure"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-author.js ► Browse Author ► "before all" hook for "should throw an error if trying to browse more than one entity"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-author.js ► GET /Author ► "before all" hook for "should get basic information of an Author"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-edition-group.js ► Browse EditionGroup ► "before all" hook for "should return list of EditionGroups associated with the edition"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-edition-group.js ► GET /EditionGroup ► "before all" hook for "should get basic information of an Edition Group"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-edition.js ► Browse Edition ► "before all" hook for "should throw an error if trying to browse more than one entity"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-edition.js ► GET /Edition ► "before all" hook for "should get basic information of edition"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-publisher.js ► Browse Publishers ► "before all" hook for "should throw an error if trying to browse more than one entity"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-publisher.js ► GET /Publisher ► "before all" hook for "should get basic information of a Publisher"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-search.js ► GET /search ► "before all" hook for "should return search result for given query"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)

Check failure on line 151 in test/test-helpers/create-entities.js

See this annotation in the file changed.

@github-actions github-actions / Mocha Tests

test/src/api/routes/test-series.js ► Browse Series ► "before all" hook for "should throw an error if trying to browse more than one entity"

Failed test found in:
  test-results.json
Error:
  Cannot read properties of undefined (reading 'number')
Raw output
TypeError: Cannot read properties of undefined (reading 'number')
    at _callee$ (test/test-helpers/create-entities.js:151:41)
    at tryCatch (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)
    at Generator.next (node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
    at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)