Skip to content

Instantly share code, notes, and snippets.

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/48798546c12975f1c14126f943f22850 to your computer and use it in GitHub Desktop.
Save stoneboyindc/48798546c12975f1c14126f943f22850 to your computer and use it in GitHub Desktop.
Kyle's test error 2
nickchang@Nicks-MacBook-Pro:~/work/thinkful/tc/donovanky/bloccit$ npm test
> bloccit@1.0.0 test /Users/nickchang/work/thinkful/tc/donovanky/bloccit
> set NODE_ENV=test&& jasmine
Started
server is listening for requests on port 3000
...sequelize deprecated Model.all has been deprecated, please use Model.findAll instead node_modules/sequelize/lib/model.js:4228:9
F.Internal Server Error. Redirecting to /topic/new
Fsequelize deprecated Model.findById has been deprecated, please use Model.findByPk instead node_modules/sequelize/lib/model.js:4208:9
FError: Failed to lookup view "topic/show" in views directory "/Users/nickchang/work/thinkful/tc/donovanky/bloccit/src/views"
at Function.render (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/express/lib/application.js:580:17)
at ServerResponse.render (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/express/lib/response.js:1012:7)
at topicQueries.getTopics (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/src/controllers/topicController.js:41:17)
at Topic.findById.then (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/src/db/queries.topic.js:34:8)
at tryCatcher (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:699:18)
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues (/Users/nickchang/work/thinkful/tc/donovanky/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)
.FF
Failures:
1) routes : topics GET /topics should return a status code 200 and all topics
Message:
Expected 500 to be 200.
Stack:
Error: Expected 500 to be 200.
at <Jasmine>
at Request.request.get [as _callback] (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/spec/integration/topics_spec.js:29:37)
at Request.self.callback (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:186:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1163:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Message:
Expected 'Internal Server Error. Redirecting to static/index' to contain 'Topics'.
Stack:
Error: Expected 'Internal Server Error. Redirecting to static/index' to contain 'Topics'.
at <Jasmine>
at Request.request.get [as _callback] (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/spec/integration/topics_spec.js:31:22)
at Request.self.callback (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:186:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1163:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Message:
Expected 'Internal Server Error. Redirecting to static/index' to contain 'JS Frameworks'.
Stack:
Error: Expected 'Internal Server Error. Redirecting to static/index' to contain 'JS Frameworks'.
at <Jasmine>
at Request.request.get [as _callback] (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/spec/integration/topics_spec.js:32:22)
at Request.self.callback (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:186:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1163:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
2) routes : topics POST /topics/create should create a new topic and redirect
Message:
Expected 500 to be 303.
Stack:
Error: Expected 500 to be 303.
at <Jasmine>
at Topic.findOne.then.topic (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/spec/integration/topics_spec.js:62:39)
at tryCatcher (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:699:18)
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/donovanky/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 GET /topics/:id should render a view with the selected topic
Message:
Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Error: Failed to lookup view &quot;topic/show&quot; in views directory &quot;/Users/nickchang/work/thinkful/tc/donovanky/bloccit/src/views&quot;<br> &nbsp; &nbsp;at Function.render (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/express/lib/application.js:580:17)<br> &nbsp; &nbsp;at ServerResponse.render (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/express/lib/response.js:1012:7)<br> &nbsp; &nbsp;at topicQueries.getTopics (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/src/controllers/topicController.js:41:17)<br> &nbsp; &nbsp;at Topic.findById.then (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/src/db/queries.topic.js:34:8)<br> &nbsp; &nbsp;at tryCatcher (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/util.js:16:23)<br> &nbsp; &nbsp;at Promise._settlePromiseFromHandler (/Users/nickchang/work ... to contain 'JS Frameworks'.
Stack:
Error: Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Error: Failed to lookup view &quot;topic/show&quot; in views directory &quot;/Users/nickchang/work/thinkful/tc/donovanky/bloccit/src/views&quot;<br> &nbsp; &nbsp;at Function.render (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/express/lib/application.js:580:17)<br> &nbsp; &nbsp;at ServerResponse.render (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/express/lib/response.js:1012:7)<br> &nbsp; &nbsp;at topicQueries.getTopics (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/src/controllers/topicController.js:41:17)<br> &nbsp; &nbsp;at Topic.findById.then (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/src/db/queries.topic.js:34:8)<br> &nbsp; &nbsp;at tryCatcher (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/util.js:16:23)<br> &nbsp; &nbsp;at Promise._settlePromiseFromHandler (/Users/nickchang/work ... to contain 'JS Frameworks'.
at <Jasmine>
at Request.request.get [as _callback] (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/spec/integration/topics_spec.js:80:22)
at Request.self.callback (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:186:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1163:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
4) routes : topics GET /topics/:id/edit should render a view with an edit topic form
Message:
Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /topics/1/edit</pre>
</body>
</html>
' to contain 'Edit Topic'.
Stack:
Error: Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /topics/1/edit</pre>
</body>
</html>
' to contain 'Edit Topic'.
at <Jasmine>
at Request.request.get [as _callback] (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/spec/integration/topics_spec.js:110:22)
at Request.self.callback (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:186:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1163:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Message:
Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /topics/1/edit</pre>
</body>
</html>
' to contain 'JS Frameworks'.
Stack:
Error: Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /topics/1/edit</pre>
</body>
</html>
' to contain 'JS Frameworks'.
at <Jasmine>
at Request.request.get [as _callback] (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/spec/integration/topics_spec.js:111:22)
at Request.self.callback (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:186:22)
at Request.emit (events.js:189:13)
at Request.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1163:10)
at Request.emit (events.js:189:13)
at IncomingMessage.<anonymous> (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:277:13)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
5) routes : topics POST /topics/:id/update should update the topic with the given values
Message:
Expected 'JS Frameworks' to be 'JavaScript Frameworks'.
Stack:
Error: Expected 'JS Frameworks' to be 'JavaScript Frameworks'.
at <Jasmine>
at Topic.findOne.then.topic (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/spec/integration/topics_spec.js:134:31)
at tryCatcher (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:699:18)
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/donovanky/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)
10 specs, 5 failures
Finished in 0.365 seconds
npm ERR! Test failed. See above for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment