Created
June 21, 2019 02:53
-
-
Save stoneboyindc/130e5cdb16739c53e93f9e5d479e1933 to your computer and use it in GitHub Desktop.
norman's bloccit test result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> bloccit@1.0.0 test /Users/nickchang/work/thinkful/tc/norman/bloccit | |
> export NODE_ENV=test&& jasmine | |
Started | |
server is listening for requests on port 3000 | |
................................TypeError: Cannot read property 'title' of null | |
at Post.findOne.then (/Users/nickchang/work/thinkful/tc/norman/bloccit/spec/integration/posts_spec.js:270:26) | |
at tryCatcher (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/util.js:16:23) | |
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:517:31) | |
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:574:18) | |
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:619:10) | |
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:699:18) | |
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:138:12) | |
at _drainQueue (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:131:9) | |
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:147:5) | |
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/norman/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) | |
F......TypeError: expect(...).notToBeNull is not a function | |
at Post.findOne.then (/Users/nickchang/work/thinkful/tc/norman/bloccit/spec/integration/posts_spec.js:451:29) | |
at tryCatcher (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/util.js:16:23) | |
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:517:31) | |
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:574:18) | |
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:619:10) | |
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:699:18) | |
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:138:12) | |
at _drainQueue (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:131:9) | |
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:147:5) | |
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/norman/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) | |
.null | |
..........express deprecated res.redirect(url, status): Use res.redirect(status, url) instead src/controllers/topicController.js:72:16 | |
F.F.....F.F.............................................. | |
Failures: | |
1) routes : posts POST /topics/:topicId/posts/create should create a new post and redirect | |
Message: | |
Expected null not to be null. | |
Stack: | |
Error: Expected null not to be null. | |
at <Jasmine> | |
at Post.findOne.then (/Users/nickchang/work/thinkful/tc/norman/bloccit/spec/integration/posts_spec.js:269:31) | |
at tryCatcher (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/util.js:16:23) | |
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:517:31) | |
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:574:18) | |
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:619:10) | |
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:699:18) | |
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:138:12) | |
at _drainQueue (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:131:9) | |
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:147:5) | |
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/norman/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 admin user performing CRUD actions for Topic POST /topics/:id/destroy should delete the topic with the associated ID | |
Message: | |
Unhandled promise rejection: RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: /topics/1 | |
Stack: | |
at <Jasmine> | |
at ServerResponse.writeHead (_http_server.js:209:11) | |
at ServerResponse.writeHead (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/on-headers/index.js:44:26) | |
at ServerResponse._implicitHeader (_http_server.js:200:8) | |
at write_ (_http_outgoing.js:585:9) | |
at ServerResponse.end (_http_outgoing.js:702:5) | |
at ServerResponse.end (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/express-session/index.js:354:19) | |
at ServerResponse.redirect (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/express/lib/response.js:947:10) | |
at topicQueries.deleteTopic (/Users/nickchang/work/thinkful/tc/norman/bloccit/src/controllers/topicController.js:72:16) | |
at Topic.findById.then.catch (/Users/nickchang/work/thinkful/tc/norman/bloccit/src/db/queries.topics.js:75:8) | |
at tryCatcher (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/util.js:16:23) | |
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:517:31) | |
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:574:18) | |
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:619:10) | |
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:695:18) | |
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:138:12) | |
at _drainQueue (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:131:9) | |
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:147:5) | |
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/norman/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) | |
3) routes : topics admin user performing CRUD actions for Topic POST /topics/:id/update should update the topic with the given values | |
Message: | |
Unhandled promise rejection: ReferenceError: Authorizer is not defined | |
Stack: | |
at <Jasmine> | |
at Topic.findById.then (/Users/nickchang/work/thinkful/tc/norman/bloccit/src/db/queries.topics.js:85:27) | |
at tryCatcher (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/util.js:16:23) | |
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:517:31) | |
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:574:18) | |
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:619:10) | |
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:699:18) | |
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:138:12) | |
at _drainQueue (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:131:9) | |
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:147:5) | |
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/norman/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) routes : topics member user performing CRUD actions for Topic POST /topics/:id/destroy should delete the topic with the associated ID | |
Message: | |
Unhandled promise rejection: RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: /topics/1 | |
Stack: | |
at <Jasmine> | |
at ServerResponse.writeHead (_http_server.js:209:11) | |
at ServerResponse.writeHead (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/on-headers/index.js:44:26) | |
at ServerResponse._implicitHeader (_http_server.js:200:8) | |
at write_ (_http_outgoing.js:585:9) | |
at ServerResponse.end (_http_outgoing.js:702:5) | |
at ServerResponse.end (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/express-session/index.js:354:19) | |
at ServerResponse.redirect (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/express/lib/response.js:947:10) | |
at topicQueries.deleteTopic (/Users/nickchang/work/thinkful/tc/norman/bloccit/src/controllers/topicController.js:72:16) | |
at Topic.findById.then.catch (/Users/nickchang/work/thinkful/tc/norman/bloccit/src/db/queries.topics.js:75:8) | |
at tryCatcher (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/util.js:16:23) | |
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:517:31) | |
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:574:18) | |
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:619:10) | |
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:695:18) | |
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:138:12) | |
at _drainQueue (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:131:9) | |
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:147:5) | |
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/norman/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) | |
5) routes : topics member user performing CRUD actions for Topic POST /topics/:id/update should update the topic with the given values | |
Message: | |
Unhandled promise rejection: ReferenceError: Authorizer is not defined | |
Stack: | |
at <Jasmine> | |
at Topic.findById.then (/Users/nickchang/work/thinkful/tc/norman/bloccit/src/db/queries.topics.js:85:27) | |
at tryCatcher (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/util.js:16:23) | |
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:517:31) | |
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:574:18) | |
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:619:10) | |
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/promise.js:699:18) | |
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:138:12) | |
at _drainQueue (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:131:9) | |
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/norman/bloccit/node_modules/bluebird/js/release/async.js:147:5) | |
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/norman/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) | |
107 specs, 5 failures | |
Finished in 8.577 seconds | |
npm ERR! Test failed. See above for more details. | |
nickchang@Nicks-MacBook-Pro:~/work/thinkful/tc/norman/bloccit$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment