Skip to content

Instantly share code, notes, and snippets.

@stoneboyindc
Created January 4, 2020 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoneboyindc/9b9b5d07ee2c1956f5a2d142941cc68c to your computer and use it in GitHub Desktop.
Save stoneboyindc/9b9b5d07ee2c1956f5a2d142941cc68c to your computer and use it in GitHub Desktop.
nickchang@Nicks-MacBook-Pro:~/work/thinkful/tc/sheilajmj/blogful_api$ npm test
> express-boilerplate@1.0.0 test /Users/nickchang/work/thinkful/tc/sheilajmj/blogful_api
> mocha --require test/setup.js
Articles Endpoints
DELETE /articles/:article_id
Given no articles
1) "before each" hook: clean the table for "responds with 404"
0 passing (58ms)
1 failing
1) Articles Endpoints
"before each" hook: clean the table for "responds with 404":
TRUNCATE solutions, categories RESTART IDENTITY CASCADE - relation "solutions" does not exist
error: relation "solutions" does not exist
at Connection.parseE (node_modules/pg/lib/connection.js:604:13)
at Connection.parseMessage (node_modules/pg/lib/connection.js:403:19)
at Socket.<anonymous> (node_modules/pg/lib/connection.js:123: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:236:12)
at Client_PG.query (node_modules/knex/lib/client.js:168:17)
at Runner.query (node_modules/knex/lib/runner.js:133:36)
at /Users/nickchang/work/thinkful/tc/sheilajmj/blogful_api/node_modules/knex/lib/runner.js:39:23
at client.acquireConnection.catch.then (node_modules/knex/lib/runner.js:253:24)
From previous event:
at Runner.ensureConnection (node_modules/knex/lib/runner.js:251:8)
at Runner.run (node_modules/knex/lib/runner.js:25:12)
at Raw.Target.then (node_modules/knex/lib/interface.js:15:43)
npm ERR! Test failed. See above for more details.
nickchang@Nicks-MacBook-Pro:~/work/thinkful/tc/sheilajmj/blogful_api$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment