# Pastebin Ay3m8hEl mastcoder@mastcoder:~/BB/bookbrainz-site$ npm test ./test/src/api/ > bbsite@0.0.0 test /home/mastcoder/BB/bookbrainz-site > npm run lint-errors && cross-env SSR=true NODE_ENV=test mocha "./test/src/api/" > bbsite@0.0.0 lint-errors /home/mastcoder/BB/bookbrainz-site > eslint --quiet . Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration. GET /work GET /work/a1d85e80-7f9b-47cc-adbe-addfb982c1b8 200 27.366 ms - 211 ✓ should get basic information of work (47ms) 1 passing (13s) About to exit with code: 0 Cleaning up before closing mastcoder@mastcoder:~/BB/bookbrainz-site$ npm test ./test/src/api/ > bbsite@0.0.0 test /home/mastcoder/BB/bookbrainz-site > npm run lint-errors && cross-env SSR=true NODE_ENV=test mocha "./test/src/api/" > bbsite@0.0.0 lint-errors /home/mastcoder/BB/bookbrainz-site > eslint --quiet . Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration. GET /work 1) "before all" hook 0 passing (13s) 1 failing 1) GET /work "before all" hook: insert into "bookbrainz"."work" ("alias_set_id", "annotation_id", "bbid", "disambiguation_id", "identifier_set_id", "relationship_set_id", "revision_id") values ($1, $2, $3, $4, $5, $6, $7) returning "bbid" - insert or update on table "work_data" violates foreign key constraint "work_data_annotation_id_fkey" error: insert or update on table "work_data" violates foreign key constraint "work_data_annotation_id_fkey" at Connection.parseE (node_modules/pg/lib/connection.js:601:11) at Connection.parseMessage (node_modules/pg/lib/connection.js:398:19) at Socket. (node_modules/pg/lib/connection.js:120:22) at addChunk (_stream_readable.js:284:12) at readableAddChunk (_stream_readable.js:265:11) at Socket.Readable.push (_stream_readable.js:220:10) at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17) From previous event: at Client_PG._query (node_modules/knex/lib/dialects/postgres/index.js:260:12) at Client_PG.query (node_modules/knex/lib/client.js:202:17) at Runner. (node_modules/knex/lib/runner.js:146:36) From previous event: at node_modules/knex/lib/runner.js:48:21 From previous event: at Runner.run (node_modules/knex/lib/runner.js:34:31) at Builder.Target.then (node_modules/knex/lib/interface.js:20:43) at Child. (node_modules/bookshelf/lib/model.js:1111:36) From previous event: at Child. (node_modules/bookshelf/lib/model.js:1110:125) From previous event: at Child. (node_modules/bookshelf/lib/model.js:1010:8) From previous event: at Child.save (node_modules/bookshelf/lib/plugins/virtuals.js:164:25) at Context.before (test/src/api/routes/test-work.js:90:6) About to exit with code: 1 Cleaning up before closing npm ERR! Test failed. See above for more details. mastcoder@mastcoder:~/BB/bookbrainz-site$