Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Failures:
- 1) routes : topics POST /topics/:id/destroy should delete the topic with the associated ID
- Message:
- Expected 'Not Found. Redirecting to /' to contain 'JS Frameworks'.
- Stack:
- Error: Expected 'Not Found. Redirecting to /' to contain 'JS Frameworks'.
- at <Jasmine>
- at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:118:22)
- at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
- at Request.emit (events.js:182:13)
- at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
- at Request.emit (events.js:182:13)
- at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
- at Object.onceWrapper (events.js:273:13)
- at IncomingMessage.emit (events.js:187:15)
- at endReadableNT (_stream_readable.js:1094:12)
- at process._tickCallback (internal/process/next_tick.js:63:19)
- Message:
- ReferenceError: done is not defined
- Stack:
- at <Jasmine>
- at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:119:9)
- at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
- at Request.emit (events.js:182:13)
- at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
- at Request.emit (events.js:182:13)
- at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
- at Object.onceWrapper (events.js:273:13)
- at IncomingMessage.emit (events.js:187:15)
- at endReadableNT (_stream_readable.js:1094:12)
- at process._tickCallback (internal/process/next_tick.js:63:19)
- Message:
- Failed: done is not defined
- Stack:
- at <Jasmine>
- at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:119:9)
- at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
- at Request.emit (events.js:182:13)
- at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
- at Request.emit (events.js:182:13)
- at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
- at Object.onceWrapper (events.js:273:13)
- at IncomingMessage.emit (events.js:187:15)
- at endReadableNT (_stream_readable.js:1094:12)
- at process._tickCallback (internal/process/next_tick.js:63:19)
- Message:
- TypeError: Cannot read property 'id' of undefined
- Stack:
- at <Jasmine>
- at topicQueries.deleteTopic (C:\Users\tanya\bloc\bloccit\src\controllers\topicController.js:42:44)
- at Topic.destroy.then.catch (C:\Users\tanya\bloc\bloccit\src\db\queries.topics.js:50:7)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- Failed: Cannot read property 'id' of undefined
- Stack:
- at <Jasmine>
- at topicQueries.deleteTopic (C:\Users\tanya\bloc\bloccit\src\controllers\topicController.js:42:44)
- at Topic.destroy.then.catch (C:\Users\tanya\bloc\bloccit\src\db\queries.topics.js:50:7)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- 2) routes : topics GET /topics/:id/edit should render a view with an edit topic form
- Message:
- SequelizeUniqueConstraintError: Validation error
- Stack:
- error properties: Object({ errors: [ ValidationErrorItem({ message: 'typname must be unique', type: 'unique violation', path: 'typname', value: 'Topics_id_seq', origin: 'DB', instance: null, validatorKey: 'not_unique', validatorName: null, validatorArgs: [ ] }), ValidationErrorItem({ message: 'typnamespace must be unique', type: 'unique violation', path: 'typnamespace', value: '2200', origin: 'DB', instance: null, validatorKey: 'not_unique', validatorName: null, validatorArgs: [ ] }) ], fields: Object({ typname: 'Topics_id_seq', typnamespace: '2200' }), parent: error: duplicate key value violates unique constraint "pg_type_typname_nsp_index", original: error: duplicate key value violates unique constraint "pg_type_typname_nsp_index", sql: 'CREATE TABLE IF NOT EXISTS "Topics" ("id" SERIAL , "title" VARCHAR(255) NOT NULL, "description" VARCHAR(255) NOT NULL, "createdAt" TIMESTAMP WITH TIME ZONE NOTNULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id"));' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:325:18)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- Failed: Validation error
- Stack:
- error properties: Object({ errors: [ ValidationErrorItem({ message: 'typname must be unique', type: 'unique violation', path: 'typname', value: 'Topics_id_seq', origin: 'DB', instance: null, validatorKey: 'not_unique', validatorName: null, validatorArgs: [ ] }), ValidationErrorItem({ message: 'typnamespace must be unique', type: 'unique violation', path: 'typnamespace', value: '2200', origin: 'DB', instance: null, validatorKey: 'not_unique', validatorName: null, validatorArgs: [ ] }) ], fields: Object({ typname: 'Topics_id_seq', typnamespace: '2200' }), parent: error: duplicate key value violates unique constraint "pg_type_typname_nsp_index", original: error: duplicate key value violates unique constraint "pg_type_typname_nsp_index", sql: 'CREATE TABLE IF NOT EXISTS "Topics" ("id" SERIAL , "title" VARCHAR(255) NOT NULL, "description" VARCHAR(255) NOT NULL, "createdAt" TIMESTAMP WITH TIME ZONE NOTNULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id"));' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:325:18)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- Expected 'Not Found. Redirecting to /' to contain 'Edit Topic'.
- Stack:
- Error: Expected 'Not Found. Redirecting to /' to contain 'Edit Topic'.
- at <Jasmine>
- at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:156:22)
- at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
- at Request.emit (events.js:182:13)
- at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
- at Request.emit (events.js:182:13)
- at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
- at Object.onceWrapper (events.js:273:13)
- at IncomingMessage.emit (events.js:187:15)
- at endReadableNT (_stream_readable.js:1094:12)
- at process._tickCallback (internal/process/next_tick.js:63:19)
- Message:
- Expected 'Not Found. Redirecting to /' to contain 'JS Frameworks'.
- Stack:
- Error: Expected 'Not Found. Redirecting to /' to contain 'JS Frameworks'.
- at <Jasmine>
- at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:157:22)
- at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
- at Request.emit (events.js:182:13)
- at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
- at Request.emit (events.js:182:13)
- at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
- at Object.onceWrapper (events.js:273:13)
- at IncomingMessage.emit (events.js:187:15)
- at endReadableNT (_stream_readable.js:1094:12)
- at process._tickCallback (internal/process/next_tick.js:63:19)
- 3) routes : topics POST /topics/:id/update should update the topic with the given values
- Message:
- SequelizeDatabaseError: relation "Topics" does not exist
- Stack:
- error properties: Object({ parent: error: relation "Topics" does not exist, original: error: relation "Topics" does not exist, sql: 'CREATE TABLE IF NOT EXISTS "Banners" ("id" SERIAL , "source" VARCHAR(255), "description" VARCHAR(255), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, "topicId" INTEGER REFERENCES "Topics" ("id") ON DELETE CASCADE ON UPDATE CASCADE, PRIMARY KEY ("id"));' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- Failed: relation "Topics" does not exist
- Stack:
- error properties: Object({ parent: error: relation "Topics" does not exist, original: error: relation "Topics" does not exist, sql: 'CREATE TABLE IF NOT EXISTS "Banners" ("id" SERIAL , "source" VARCHAR(255), "description" VARCHAR(255), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, "topicId" INTEGER REFERENCES "Topics" ("id") ON DELETE CASCADE ON UPDATE CASCADE, PRIMARY KEY ("id"));' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- SequelizeDatabaseError: relation "Topics" does not exist
- Stack:
- error properties: Object({ parent: error: relation "Topics" does not exist, original: error: relation "Topics" does not exist, sql: 'SELECT "id", "title", "description", "createdAt", "updatedAt" FROM"Topics" AS "Topic" WHERE "Topic"."id" = '1';' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- Failed: relation "Topics" does not exist
- Stack:
- error properties: Object({ parent: error: relation "Topics" does not exist, original: error: relation "Topics" does not exist, sql: 'SELECT "id", "title", "description", "createdAt", "updatedAt" FROM"Topics" AS "Topic" WHERE "Topic"."id" = '1';' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- 4) Post #create() should create a post object with a title, body, and assigned topic
- Message:
- SequelizeDatabaseError: relation "Topics" does not exist
- Stack:
- error properties: Object({ parent: error: relation "Topics" does not exist, original: error: relation "Topics" does not exist, sql: 'CREATE TABLE IF NOT EXISTS "Banners" ("id" SERIAL , "source" VARCHAR(255), "description" VARCHAR(255), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, "topicId" INTEGER REFERENCES "Topics" ("id") ON DELETE CASCADE ON UPDATE CASCADE, PRIMARY KEY ("id"));' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- Failed: relation "Topics" does not exist
- Stack:
- error properties: Object({ parent: error: relation "Topics" does not exist, original: error: relation "Topics" does not exist, sql: 'CREATE TABLE IF NOT EXISTS "Banners" ("id" SERIAL , "source" VARCHAR(255), "description" VARCHAR(255), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, "topicId" INTEGER REFERENCES "Topics" ("id") ON DELETE CASCADE ON UPDATE CASCADE, PRIMARY KEY ("id"));' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- TypeError: Cannot read property 'id' of undefined
- Stack:
- at <Jasmine>
- at UserContext.it (C:\Users\tanya\bloc\bloccit\spec\unit\post_spec.js:44:29)
- at <Jasmine>
- at process.emit (events.js:182:13)
- at C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:199:33
- at activeFireEvent (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:242:44)
- at fireRejectionEvent (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:632:14)
- at Promise._notifyUnhandledRejection (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:65:9)
- at Timeout._onTimeout (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:44:14)
- at ontimeout (timers.js:436:11)
- at tryOnTimeout (timers.js:300:5)
- at listOnTimeout (timers.js:263:5)
- at Timer.processTimers (timers.js:223:10)
- 5) Post #create() should not create a post with missing title, body, or assigned topic
- Message:
- SequelizeUniqueConstraintError: Validation error
- Stack:
- error properties: Object({ errors: [ ValidationErrorItem({ message: 'typname must be unique', type: 'unique violation', path: 'typname', value: 'Banners_id_seq', origin: 'DB', instance: null, validatorKey: 'not_unique', validatorName: null, validatorArgs: [ ] }), ValidationErrorItem({ message: 'typnamespace must be unique', type: 'unique violation', path: 'typnamespace', value: '2200', origin: 'DB',instance: null, validatorKey: 'not_unique', validatorName: null, validatorArgs: [ ] }) ], fields: Object({ typname: 'Banners_id_seq', typnamespace: '2200' }), parent: error: duplicate key value violatesunique constraint "pg_type_typname_nsp_index", original: error: duplicate key value violates unique constraint "pg_type_typname_nsp_index", sql: 'CREATE TABLE IF NOT EXISTS "Banners" ("id" SERIAL , "source" VARCHAR(255), "description" VARCHAR(255), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, "topicId" INTEGER REFERENCES "Topics" ("id") ON DELETE CASCAD ...
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:325:18)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- Failed: Validation error
- Stack:
- error properties: Object({ errors: [ ValidationErrorItem({ message: 'typname must be unique', type: 'unique violation', path: 'typname', value: 'Banners_id_seq', origin: 'DB', instance: null, validatorKey: 'not_unique', validatorName: null, validatorArgs: [ ] }), ValidationErrorItem({ message: 'typnamespace must be unique', type: 'unique violation', path: 'typnamespace', value: '2200', origin: 'DB',instance: null, validatorKey: 'not_unique', validatorName: null, validatorArgs: [ ] }) ], fields: Object({ typname: 'Banners_id_seq', typnamespace: '2200' }), parent: error: duplicate key value violatesunique constraint "pg_type_typname_nsp_index", original: error: duplicate key value violates unique constraint "pg_type_typname_nsp_index", sql: 'CREATE TABLE IF NOT EXISTS "Banners" ("id" SERIAL , "source" VARCHAR(255), "description" VARCHAR(255), "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, "topicId" INTEGER REFERENCES "Topics" ("id") ON DELETE CASCAD ...
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:325:18)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- 6) Post #setTopic() should associate a topic and a post together
- Message:
- SequelizeDatabaseError: relation "Topics" does not exist
- Stack:
- error properties: Object({ parent: error: relation "Topics" does not exist, original: error: relation "Topics" does not exist, sql: 'CREATE TABLE IF NOT EXISTS "Posts" ("id" SERIAL , "title" VARCHAR(255) NOT NULL, "body" VARCHAR(255) NOT NULL, "topicId" INTEGER NOT NULL REFERENCES "Topics" ("id") ON DELETE CASCADE ON UPDATE CASCADE, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id"));' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- Failed: relation "Topics" does not exist
- Stack:
- error properties: Object({ parent: error: relation "Topics" does not exist, original: error: relation "Topics" does not exist, sql: 'CREATE TABLE IF NOT EXISTS "Posts" ("id" SERIAL , "title" VARCHAR(255) NOT NULL, "body" VARCHAR(255) NOT NULL, "topicId" INTEGER NOT NULL REFERENCES "Topics" ("id") ON DELETE CASCADE ON UPDATE CASCADE, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL, "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL, PRIMARY KEY ("id"));' })
- at <Jasmine>
- at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
- at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- TypeError: Cannot read property 'topicId' of undefined
- Stack:
- at <Jasmine>
- at Topic.create.then (C:\Users\tanya\bloc\bloccit\spec\unit\post_spec.js:86:26)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:694:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- Message:
- Failed: Cannot read property 'topicId' of undefined
- Stack:
- at <Jasmine>
- at Topic.create.then (C:\Users\tanya\bloc\bloccit\spec\unit\post_spec.js:86:26)
- at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
- at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
- at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
- at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
- at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:694:18)
- at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
- at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
- at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
- at runCallback (timers.js:705:18)
- at tryOnImmediate (timers.js:676:5)
- at processImmediate (timers.js:658:5)
- 13 specs, 6 failures
- Finished in 1.699 seconds
- npm ERR! Test failed. See above for more details.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement