Update package version #27
150 passed, 10 failed and 0 skipped
❌ test-results.json
160 tests were completed in 26s with 150 passed, 10 failed and 0 skipped.
✅ test/func/alias.js
updateAliasSet
✅ should allow only one primary alias per language
✅ should allow only the default alias to be primary for that language
✅ should error if a set of aliases is passed with no default
✅ should return a new set if changes are made to the aliases in the set
✅ should return a new set if the default alias is changed
✅ should return a set with one alias if one alias is added to an empty set
✅ should return null if all null/empty sets are passed
✅ should return the old set if no changes are made
✅ test/func/area.js
recursivelyGetAreaParentsWithNames
✅ should return all levels when checkAllLevels is true
✅ should return an array of areas with their names, sorted by type
✅ should work when calling parents() on an Area model
✅ test/func/author-credit.js
fetchOrCreateCredit
✅ should create a single author credit if called twice
updateCreateCredit
✅ should return a new credit if the credit is updated
✅ should return the original credit if changed, and then reverted
✅ should return the original credit if the credit is unchanged
✅ test/func/entity.js
getEntity
✅ should return an entity
✅ should return an entity with extra relations
✅ should return the target entity for a redirected bbid
recursivelyGetRedirectBBID
✅ should return a multiple-step redirected bbid
✅ should return a single-step redirected bbid
✅ test/func/externalServiceOauth.js
deleteOauthToken
✅ should delete oauth token
getOauthToken
✅ should return oauth token
saveOauthToken
✅ should save oauth token and return the saved token
updateOauthToken
✅ should update oauth token
✅ test/func/identifier.js
updateIdentifierSet
✅ should return a new set if changes are made to the identifiers in the set
✅ should return a set with one identifier if one identifier is added to an empty set
✅ should return null if all null/empty sets are passed
✅ should return the old set if no changes are made
✅ test/func/language.js
updateLanguageSet
✅ should return a set with one language if one language is added to an empty set
✅ should return null if all null/empty sets are passed
✅ should return the old set if no changes are made
✅ test/func/relationship.js
updateRelationshipSet
✅ should return a new set if changes are made to the relationships in the set
✅ should return an empty object if all null/empty sets are passed
✅ should return an object with two entries if one relationship is added to an empty set
✅ should return the old set if no changes are made
✅ test/func/relationshipAttributes.js
updateRelationshipAttributeSet
✅ should return a new set if changes are made to the attributes in the set
✅ should return a set with one attribute if one attribute is added to an empty set
✅ should return null if all null/empty sets are passed
✅ should return the old set if no changes are made
✅ test/func/set.js
createNewSetWithItems
✅ should error out if non-existent unchanged items are provided
✅ should return a new set with one item if an item is added
✅ should return a new set with two items if an item is added to an existing unchanged item
✅ should return null if no items are provided
getAddedItems
✅ should return a single element when one element is different
✅ should return a single element when one element is different and duplicated
✅ should return an empty list for two arrays of identical objects
getRemovedItems
✅ should return a single element when one element is different
✅ should return a single element when one element is different and duplicated
✅ should return an empty list for two arrays of identical objects
getUnchangedItems
✅ should return a single element when one duplicated element is the same
✅ should return a single element when one element is different
✅ should return all objects for two arrays of identical objects
removeItemsFromSet
✅ should return a single element when one element is different
✅ should return a single element when one element is different and duplicated
✅ should return an empty list for two arrays of identical objects
✅ test/func/work.js
loadAuthorNames
✅ should return an array of objects with appropriate keys when the list of workBBIDs is not empty
✅ should return an empty array if the list of workBBIDs is empty
✅ test/testAchievementType.js
AchievementType model
✅ should return a JSON object with correct keys when saved
✅ test/testAchievementUnlock.js
AchievementUnlock model
✅ should return a JSON object with correct keys when saved
✅ test/testAlias.js
Alias model
✅ should return a JSON object with correct keys when saved
✅ test/testAliasSet.js
AliasSet model
✅ should have an empty list of aliases when none are attached
✅ should have have an alias when one is set
✅ should have have two aliases when two are set
✅ should return a JSON object with correct keys when saved
✅ test/testAnnotation.js
Annotation model
✅ should return a JSON object with correct keys when saved
✅ test/testArea.js
Area model
✅ should return a JSON object with correct keys when saved
AreaType model
✅ should be fetched as relationship when fetching Area
✅ should return a JSON object with correct keys when saved
❌ test/testAuthor.js
Author model
✅ should return a JSON object with correct keys when saved
✅ should return a JSON object with empty collections array
✅ should return a JSON object with related collections if there exist any
✅ should return the master revision when multiple revisions exist
Author model with Author Credits
✅ should return the associated Author Credits for an Author
✅ should return the associated Edition Groups using creditedEditionGroups method
❌ should return the associated Editions using creditedEditions method
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
✅ test/testAuthorRevision.js
AuthorRevision model
✅ should return a JSON object with correct keys when saved
✅ test/testDisambiguation.js
Disambiguation model
✅ should return a JSON object with correct keys when saved
❌ test/testEdition.js
Edition model
❌ should automatically create an Edition Group editionGroupBbid has been unset in existing Edition
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
❌ should automatically create an Edition Group if none has been passed
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
❌ should return a JSON object with correct keys when saved
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
❌ should return a JSON object with empty collections array
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
❌ should return a JSON object with related collections if there exist any
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
❌ should return the master revision when multiple revisions exist
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, DEFAULT, $2, DEFAULT, $3) returning * - column "credit_section" of relation "edition_group" does not exist
❌ should set the same Author Credit on auto-created Edition Group
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
❌ test/testEditionGroup.js
EditionGroup model
❌ should return a JSON object with correct keys when saved
expected { aliasSetId: 1, …(21) } to have keys 'aliasSet', 'aliasSetId', 'annotation', 'annotationId', 'authorCreditId', 'bbid', 'creditSection', 'dataId', 'defaultAliasId', 'disambiguation', 'disambiguationId', 'identifierSet', 'identifierSetId', 'master', 'relationshipSet', 'relationshipSetId', 'revisionId', 'type', 'typeId', 'collections', 'sortName', 'name', and 'editionGroupType'
✅ should return a JSON object with empty collections array
✅ should return a JSON object with related collections if there exist any
✅ should return the master revision when multiple revisions exist
✅ test/testEditionGroupRevision.js
EditionGroupRevision model
✅ should return a JSON object with correct keys when saved
❌ test/testEditionRevision.js
EditionRevision model
❌ "before each" hook for "should return a JSON object with correct keys when saved"
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, DEFAULT, $2, DEFAULT, $3) returning * - column "credit_section" of relation "edition_group" does not exist
✅ test/testEditor.js
Editor model
✅ should return a JSON object with correct keys when saved
✅ test/testEditorEntityVisits.js
EditorEntityVisits model
✅ should return a JSON object with correct keys when saved
✅ test/testEditorType.js
EditorType model
✅ should return a JSON object with correct keys when saved
✅ test/testEntity.js
Entity model
✅ should return a JSON object with correct keys when saved
✅ test/testExternalServiceOauth.js
ExternalServiceOauth model
✅ should return a JSON object with correct keys when saved
✅ test/testGender.js
Gender model
✅ should return a JSON object with correct keys when saved
✅ test/testIdentifier.js
Identifier model
✅ should return a JSON object with correct keys when saved
✅ test/testIdentifierSet.js
IdentifierSet model
✅ should have an empty list of identifiers when none are attached
✅ should have have an identifier when one is set
✅ should have have two identifiers when two are set
✅ should return a JSON object with correct keys when saved
✅ test/testIdentifierType.js
IdentifierType model
✅ should return a JSON object with correct keys when saved
✅ test/testLanguage.js
Language model
✅ should return a JSON object with correct keys when saved
✅ test/testLanguageSet.js
LanguageSet model
✅ should have an empty list of languages when none are attached
✅ should have have a language when one is set
✅ should have have two languages when two are set
✅ should return a JSON object with correct keys when saved
✅ test/testModule.js
Module
✅ should have a bookshelf property with a knex property
✅ should have bookshelf and utils properties
✅ should return one model for each file in the models directory
✅ test/testPublisher.js
Publisher model
✅ should return a JSON object with correct keys when saved
✅ should return a JSON object with empty collections array
✅ should return a JSON object with related collections if there exist any
✅ should return the master revision when multiple revisions exist
✅ test/testPublisherRevision.js
PublisherRevision model
✅ should return a JSON object with correct keys when saved
✅ test/testRelationship.js
Relationship model
✅ should return a JSON object with correct keys when saved
✅ should return a relationship with it's attributes when one is set
✅ test/testRelationshipAttributes.js
Relationship Attribute model
✅ should return a JSON object with correct keys when saved
✅ test/testRelationshipAttributeSet.js
RelationshipAttributeSet model
✅ should have an empty list of attributes when none are attached
✅ should have have a relationship attribute when one is set
✅ should have have two relationship attributes when two are set
✅ should return a JSON object with correct keys when saved
✅ test/testRelationshipAttributeType.js
RelationshipAttributeType model
✅ should return a JSON object with correct keys when saved
✅ test/testRelationshipSet.js
RelationshipSet model
✅ should have an empty list of relationships when none are attached
✅ should have have a relationship when one is set
✅ should have have two relationships when two are set
✅ should return a JSON object with correct keys when saved
✅ test/testRelationshipType.js
RelationshipType model
✅ should return a JSON object with correct keys when saved
✅ should return attribute type associated with the relationship type
✅ test/testRevision.js
Revision model
✅ should return a JSON object with correct keys when saved
✅ test/testSeries.js
Series model
✅ should allow to update the series ordering type
✅ should return a JSON object with correct keys when saved
✅ should return a JSON object with empty collections array
✅ should return a JSON object with related collections
✅ should return the master revision when multiple revisions exist
✅ test/testSeriesOrderingType.js
SeriesOrderingType model
✅ should return a JSON object with correct keys when saved
✅ test/testSeriesRevision.js
SeriesRevision model
✅ should return a JSON object with correct keys when saved
✅ test/testTitleType.js
TitleType model
✅ should return a JSON object with correct keys when saved
✅ test/testTitleUnlock.js
TitleUnlock model
✅ should return a JSON object with correct keys when saved
✅ test/testUserCollection.js
UserCollection model
✅ should return a JSON object with itemCount when saved and fetched with withItemCount flag
✅ should return a JSON object without itemCount when saved and fetched without withItemCount flag
✅ test/testWork.js
Work model
✅ should return a JSON object with correct keys when saved
✅ should return a JSON object with empty collections array
✅ should return a JSON object with related collections
✅ should return the master revision when multiple revisions exist
✅ test/testWorkRevision.js
WorkRevision model
✅ should return a JSON object with correct keys when saved
✅ test/util.js
Utils formatDate
✅ should allow negative years for full date and with missing month and/or day
✅ should return null when passed an invalid date object
✅ should return the date as ISO 8601 for a date object with missing month
✅ should return the date as ISO 8601 for a date object with missing month and day
✅ should return the date as ISO 8601 for a date object with year equal to zero
✅ should return the date as ISO 8601 for a full date object
Utils parseDate
✅ should allow BCE dates as extended ISO 8601-2004 date string
✅ should allow partial BCE dates as extended ISO 8601-2004 with missing day
✅ should allow partial BCE dates as extended ISO 8601-2004 with missing day and month
✅ should allow partial dates with missing day
✅ should allow partial dates with missing day and month
✅ should return an array of 3 null values when passed an invalid string (other than ISO 8601)
✅ should return the date as an array of 3 values when passed a full ISO 8601 date string
✅ should return the date as an array of 3 values when passed an extended ISO 8601-2004 date string
Annotations
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testAuthor.js ► Author model with Author Credits ► should return the associated Editions using creditedEditions method
Failed test found in:
test-results.json
Error:
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
Raw output
error: insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
at Parser.parseErrorMessage (node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Socket.Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testEdition.js ► Edition model ► should automatically create an Edition Group editionGroupBbid has been unset in existing Edition
Failed test found in:
test-results.json
Error:
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
Raw output
error: insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
at Parser.parseErrorMessage (node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Socket.Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testEdition.js ► Edition model ► should automatically create an Edition Group if none has been passed
Failed test found in:
test-results.json
Error:
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
Raw output
error: insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
at Parser.parseErrorMessage (node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Socket.Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testEdition.js ► Edition model ► should return a JSON object with correct keys when saved
Failed test found in:
test-results.json
Error:
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
Raw output
error: insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
at Parser.parseErrorMessage (node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Socket.Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testEdition.js ► Edition model ► should return a JSON object with empty collections array
Failed test found in:
test-results.json
Error:
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
Raw output
error: insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
at Parser.parseErrorMessage (node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Socket.Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testEdition.js ► Edition model ► should return a JSON object with related collections if there exist any
Failed test found in:
test-results.json
Error:
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
Raw output
error: insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
at Parser.parseErrorMessage (node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Socket.Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testEdition.js ► Edition model ► should return the master revision when multiple revisions exist
Failed test found in:
test-results.json
Error:
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, DEFAULT, $2, DEFAULT, $3) returning * - column "credit_section" of relation "edition_group" does not exist
Raw output
error: insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, DEFAULT, $2, DEFAULT, $3) returning * - column "credit_section" of relation "edition_group" does not exist
at Parser.parseErrorMessage (node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Socket.Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testEdition.js ► Edition model ► should set the same Author Credit on auto-created Edition Group
Failed test found in:
test-results.json
Error:
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
Raw output
error: insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, $2, $3, DEFAULT, $4) returning * - column "credit_section" of relation "edition_group" does not exist
at Parser.parseErrorMessage (node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Socket.Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testEditionGroup.js ► EditionGroup model ► should return a JSON object with correct keys when saved
Failed test found in:
test-results.json
Error:
expected { aliasSetId: 1, …(21) } to have keys 'aliasSet', 'aliasSetId', 'annotation', 'annotationId', 'authorCreditId', 'bbid', 'creditSection', 'dataId', 'defaultAliasId', 'disambiguation', 'disambiguationId', 'identifierSet', 'identifierSetId', 'master', 'relationshipSet', 'relationshipSetId', 'revisionId', 'type', 'typeId', 'collections', 'sortName', 'name', and 'editionGroupType'
Raw output
AssertionError: expected { aliasSetId: 1, …(21) } to have keys 'aliasSet', 'aliasSetId', 'annotation', 'annotationId', 'authorCreditId', 'bbid', 'creditSection', 'dataId', 'defaultAliasId', 'disambiguation', 'disambiguationId', 'identifierSet', 'identifierSetId', 'master', 'relationshipSet', 'relationshipSetId', 'revisionId', 'type', 'typeId', 'collections', 'sortName', 'name', and 'editionGroupType'
at Child.<anonymous> (node_modules/chai-as-promised/lib/chai-as-promised.js:302:22)
at Child.tryCatcher (node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (node:internal/timers:476:21)
Check failure on line 0 in test-results.json
github-actions / Mocha test results
test/testEditionRevision.js ► EditionRevision model ► "before each" hook for "should return a JSON object with correct keys when saved"
Failed test found in:
test-results.json
Error:
insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, DEFAULT, $2, DEFAULT, $3) returning * - column "credit_section" of relation "edition_group" does not exist
Raw output
error: insert into "bookbrainz"."edition_group" ("alias_set_id", "author_credit_id", "bbid", "credit_section", "revision_id") values ($1, DEFAULT, $2, DEFAULT, $3) returning * - column "credit_section" of relation "edition_group" does not exist
at Parser.parseErrorMessage (node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Socket.Readable.push (node:internal/streams/readable:278:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)