· 7 years ago · Feb 20, 2019, 10:56 PM
1Failures:
21) routes : topics POST /topics/:id/destroy should delete the topic with the associated ID
3 Message:
4 Expected 'Not Found. Redirecting to /' to contain 'JS Frameworks'.
5 Stack:
6 Error: Expected 'Not Found. Redirecting to /' to contain 'JS Frameworks'.
7 at <Jasmine>
8 at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:118:22)
9 at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
10 at Request.emit (events.js:182:13)
11 at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
12 at Request.emit (events.js:182:13)
13 at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
14 at Object.onceWrapper (events.js:273:13)
15 at IncomingMessage.emit (events.js:187:15)
16 at endReadableNT (_stream_readable.js:1094:12)
17 at process._tickCallback (internal/process/next_tick.js:63:19)
18 Message:
19 ReferenceError: done is not defined
20 Stack:
21 at <Jasmine>
22 at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:119:9)
23 at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
24 at Request.emit (events.js:182:13)
25 at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
26 at Request.emit (events.js:182:13)
27 at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
28 at Object.onceWrapper (events.js:273:13)
29 at IncomingMessage.emit (events.js:187:15)
30 at endReadableNT (_stream_readable.js:1094:12)
31 at process._tickCallback (internal/process/next_tick.js:63:19)
32 Message:
33 Failed: done is not defined
34 Stack:
35 at <Jasmine>
36 at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:119:9)
37 at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
38 at Request.emit (events.js:182:13)
39 at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
40 at Request.emit (events.js:182:13)
41 at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
42 at Object.onceWrapper (events.js:273:13)
43 at IncomingMessage.emit (events.js:187:15)
44 at endReadableNT (_stream_readable.js:1094:12)
45 at process._tickCallback (internal/process/next_tick.js:63:19)
46 Message:
47 TypeError: Cannot read property 'id' of undefined
48 Stack:
49 at <Jasmine>
50 at topicQueries.deleteTopic (C:\Users\tanya\bloc\bloccit\src\controllers\topicController.js:42:44)
51 at Topic.destroy.then.catch (C:\Users\tanya\bloc\bloccit\src\db\queries.topics.js:50:7)
52 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
53 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
54 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
55 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
56 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
57 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
58 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
59 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
60 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
61 at runCallback (timers.js:705:18)
62 at tryOnImmediate (timers.js:676:5)
63 at processImmediate (timers.js:658:5)
64 Message:
65 Failed: Cannot read property 'id' of undefined
66 Stack:
67 at <Jasmine>
68 at topicQueries.deleteTopic (C:\Users\tanya\bloc\bloccit\src\controllers\topicController.js:42:44)
69 at Topic.destroy.then.catch (C:\Users\tanya\bloc\bloccit\src\db\queries.topics.js:50:7)
70 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
71 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
72 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
73 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
74 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
75 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
76 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
77 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
78 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
79 at runCallback (timers.js:705:18)
80 at tryOnImmediate (timers.js:676:5)
81 at processImmediate (timers.js:658:5)
82
832) routes : topics GET /topics/:id/edit should render a view with an edit topic form
84 Message:
85 SequelizeUniqueConstraintError: Validation error
86 Stack:
87 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"));' })
88 at <Jasmine>
89 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:325:18)
90 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
91 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
92 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
93 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
94 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
95 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
96 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
97 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
98 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
99 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
100 at runCallback (timers.js:705:18)
101 at tryOnImmediate (timers.js:676:5)
102 at processImmediate (timers.js:658:5)
103 Message:
104 Failed: Validation error
105 Stack:
106 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"));' })
107 at <Jasmine>
108 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:325:18)
109 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
110 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
111 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
112 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
113 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
114 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
115 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
116 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
117 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
118 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
119 at runCallback (timers.js:705:18)
120 at tryOnImmediate (timers.js:676:5)
121 at processImmediate (timers.js:658:5)
122 Message:
123 Expected 'Not Found. Redirecting to /' to contain 'Edit Topic'.
124 Stack:
125 Error: Expected 'Not Found. Redirecting to /' to contain 'Edit Topic'.
126 at <Jasmine>
127 at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:156:22)
128 at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
129 at Request.emit (events.js:182:13)
130 at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
131 at Request.emit (events.js:182:13)
132 at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
133 at Object.onceWrapper (events.js:273:13)
134 at IncomingMessage.emit (events.js:187:15)
135 at endReadableNT (_stream_readable.js:1094:12)
136 at process._tickCallback (internal/process/next_tick.js:63:19)
137 Message:
138 Expected 'Not Found. Redirecting to /' to contain 'JS Frameworks'.
139 Stack:
140 Error: Expected 'Not Found. Redirecting to /' to contain 'JS Frameworks'.
141 at <Jasmine>
142 at Request.request.get [as _callback] (C:\Users\tanya\bloc\bloccit\spec\integration\topics_spec.js:157:22)
143 at Request.self.callback (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:186:22)
144 at Request.emit (events.js:182:13)
145 at Request.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1163:10)
146 at Request.emit (events.js:182:13)
147 at IncomingMessage.<anonymous> (C:\Users\tanya\bloc\bloccit\node_modules\request\request.js:1085:12)
148 at Object.onceWrapper (events.js:273:13)
149 at IncomingMessage.emit (events.js:187:15)
150 at endReadableNT (_stream_readable.js:1094:12)
151 at process._tickCallback (internal/process/next_tick.js:63:19)
152
1533) routes : topics POST /topics/:id/update should update the topic with the given values
154 Message:
155 SequelizeDatabaseError: relation "Topics" does not exist
156 Stack:
157 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"));' })
158 at <Jasmine>
159 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
160 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
161 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
162 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
163 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
164 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
165 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
166 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
167 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
168 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
169 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
170 at runCallback (timers.js:705:18)
171 at tryOnImmediate (timers.js:676:5)
172 at processImmediate (timers.js:658:5)
173 Message:
174 Failed: relation "Topics" does not exist
175 Stack:
176 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"));' })
177 at <Jasmine>
178 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
179 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
180 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
181 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
182 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
183 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
184 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
185 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
186 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
187 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
188 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
189 at runCallback (timers.js:705:18)
190 at tryOnImmediate (timers.js:676:5)
191 at processImmediate (timers.js:658:5)
192 Message:
193 SequelizeDatabaseError: relation "Topics" does not exist
194 Stack:
195 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';' })
196 at <Jasmine>
197 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
198 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
199 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
200 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
201 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
202 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
203 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
204 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
205 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
206 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
207 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
208 at runCallback (timers.js:705:18)
209 at tryOnImmediate (timers.js:676:5)
210 at processImmediate (timers.js:658:5)
211 Message:
212 Failed: relation "Topics" does not exist
213 Stack:
214 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';' })
215 at <Jasmine>
216 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
217 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
218 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
219 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
220 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
221 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
222 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
223 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
224 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
225 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
226 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
227 at runCallback (timers.js:705:18)
228 at tryOnImmediate (timers.js:676:5)
229 at processImmediate (timers.js:658:5)
230
2314) Post #create() should create a post object with a title, body, and assigned topic
232 Message:
233 SequelizeDatabaseError: relation "Topics" does not exist
234 Stack:
235 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"));' })
236 at <Jasmine>
237 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
238 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
239 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
240 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
241 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
242 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
243 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
244 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
245 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
246 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
247 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
248 at runCallback (timers.js:705:18)
249 at tryOnImmediate (timers.js:676:5)
250 at processImmediate (timers.js:658:5)
251 Message:
252 Failed: relation "Topics" does not exist
253 Stack:
254 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"));' })
255 at <Jasmine>
256 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
257 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
258 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
259 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
260 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
261 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
262 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
263 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
264 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
265 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
266 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
267 at runCallback (timers.js:705:18)
268 at tryOnImmediate (timers.js:676:5)
269 at processImmediate (timers.js:658:5)
270 Message:
271 TypeError: Cannot read property 'id' of undefined
272 Stack:
273 at <Jasmine>
274 at UserContext.it (C:\Users\tanya\bloc\bloccit\spec\unit\post_spec.js:44:29)
275 at <Jasmine>
276 at process.emit (events.js:182:13)
277 at C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:199:33
278 at activeFireEvent (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:242:44)
279 at fireRejectionEvent (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:632:14)
280 at Promise._notifyUnhandledRejection (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:65:9)
281 at Timeout._onTimeout (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\debuggability.js:44:14)
282 at ontimeout (timers.js:436:11)
283 at tryOnTimeout (timers.js:300:5)
284 at listOnTimeout (timers.js:263:5)
285 at Timer.processTimers (timers.js:223:10)
286
2875) Post #create() should not create a post with missing title, body, or assigned topic
288 Message:
289 SequelizeUniqueConstraintError: Validation error
290 Stack:
291 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 ...
292 at <Jasmine>
293 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:325:18)
294 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
295 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
296 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
297 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
298 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
299 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
300 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
301 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
302 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
303 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
304 at runCallback (timers.js:705:18)
305 at tryOnImmediate (timers.js:676:5)
306 at processImmediate (timers.js:658:5)
307 Message:
308 Failed: Validation error
309 Stack:
310 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 ...
311 at <Jasmine>
312 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:325:18)
313 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
314 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
315 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
316 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
317 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
318 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
319 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
320 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
321 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
322 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
323 at runCallback (timers.js:705:18)
324 at tryOnImmediate (timers.js:676:5)
325 at processImmediate (timers.js:658:5)
326
3276) Post #setTopic() should associate a topic and a post together
328 Message:
329 SequelizeDatabaseError: relation "Topics" does not exist
330 Stack:
331 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"));' })
332 at <Jasmine>
333 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
334 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
335 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
336 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
337 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
338 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
339 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
340 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
341 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
342 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
343 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
344 at runCallback (timers.js:705:18)
345 at tryOnImmediate (timers.js:676:5)
346 at processImmediate (timers.js:658:5)
347 Message:
348 Failed: relation "Topics" does not exist
349 Stack:
350 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"));' })
351 at <Jasmine>
352 at Query.formatError (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
353 at query.catch.err (C:\Users\tanya\bloc\bloccit\node_modules\sequelize\lib\dialects\postgres\query.js:86:18)
354 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
355 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
356 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
357 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
358 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:690:18)
359 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
360 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
361 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
362 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
363 at runCallback (timers.js:705:18)
364 at tryOnImmediate (timers.js:676:5)
365 at processImmediate (timers.js:658:5)
366 Message:
367 TypeError: Cannot read property 'topicId' of undefined
368 Stack:
369 at <Jasmine>
370 at Topic.create.then (C:\Users\tanya\bloc\bloccit\spec\unit\post_spec.js:86:26)
371 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
372 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
373 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
374 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
375 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:694:18)
376 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
377 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
378 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
379 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
380 at runCallback (timers.js:705:18)
381 at tryOnImmediate (timers.js:676:5)
382 at processImmediate (timers.js:658:5)
383 Message:
384 Failed: Cannot read property 'topicId' of undefined
385 Stack:
386 at <Jasmine>
387 at Topic.create.then (C:\Users\tanya\bloc\bloccit\spec\unit\post_spec.js:86:26)
388 at tryCatcher (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
389 at Promise._settlePromiseFromHandler (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:512:31)
390 at Promise._settlePromise (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:569:18)
391 at Promise._settlePromise0 (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:614:10)
392 at Promise._settlePromises (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\promise.js:694:18)
393 at _drainQueueStep (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
394 at _drainQueue (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
395 at Async._drainQueues (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
396 at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\tanya\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
397 at runCallback (timers.js:705:18)
398 at tryOnImmediate (timers.js:676:5)
399 at processImmediate (timers.js:658:5)
400
40113 specs, 6 failures
402Finished in 1.699 seconds
403npm ERR! Test failed. See above for more details.