Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tanya@DESKTOP-4Q72IVM MINGW64 ~/bloc/bloccit (checkpoint-validations)
- $ npm test
- > bloccit@1.0.0 test C:\Users\tanya\bloc\bloccit
- > set NODE_ENV=test&& jasmine
- Started
- server is listening for requests on port 3000
- Welcome to Bloccit
- About Us
- F...F.FF............
- Failures:
- 1) routes : posts GET /topics/:topicId/posts/new should render a new post form
- Message:
- ReferenceError: topic is not defined
- Stack:
- at <Jasmine>
- at UserContext.it (C:\Users\tanya\bloc\bloccit\spec\integration\posts_spec.js:44:30)
- at <Jasmine>
- at Post.create.then (C:\Users\tanya\bloc\bloccit\spec\integration\posts_spec.js:31:11)
- 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)
- 2) routes : posts POST /topics/:topicId/posts/:id/destroy should delete the post with the associated ID
- Message:
- ReferenceError: post is not defined
- Stack:
- at <Jasmine>
- at UserContext.it (C:\Users\tanya\bloc\bloccit\spec\integration\posts_spec.js:126:13)
- at <Jasmine>
- at Post.create.then (C:\Users\tanya\bloc\bloccit\spec\integration\posts_spec.js:31:11)
- 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)
- 3) routes : posts POST /topics/:topicId/posts/:id/update should return a status code 302
- Message:
- ReferenceError: topic is not defined
- Stack:
- at <Jasmine>
- at UserContext.it (C:\Users\tanya\bloc\bloccit\spec\integration\posts_spec.js:159:23)
- at <Jasmine>
- at Post.create.then (C:\Users\tanya\bloc\bloccit\spec\integration\posts_spec.js:31:11)
- 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)
- 4) routes : posts POST /topics/:topicId/posts/:id/update should update the post with the given values
- Message:
- Expected 'Snowball Fighting' to be 'Snowman Building Competition'.
- Stack:
- Error: Expected 'Snowball Fighting' to be 'Snowman Building Competition'.
- at <Jasmine>
- at Post.findOne.then (C:\Users\tanya\bloc\bloccit\spec\integration\posts_spec.js:186:30)
- 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)
- 20 specs, 4 failures
- Finished in 4.322 seconds
- npm ERR! Test failed. See above for more details.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement