Skip to content

Instantly share code, notes, and snippets.

@clc80
Created November 2, 2018 23:27
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 clc80/447521f4a3dab54e07abc61f3f1cfddc to your computer and use it in GitHub Desktop.
Save clc80/447521f4a3dab54e07abc61f3f1cfddc to your computer and use it in GitHub Desktop.
FTypeError: Cannot read property 'title' of null
at Topic.findOne.then (/Users/clmaciel/bloc/bloccit/spec/integration/topics_spec.js:215:20)
at tryCatcher (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
F.FFF
Failures:
1) routes : topics member user performing CRUD actions for Topic Get /topics/new should render a new topic form
Message:
Expected '<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Bloccit</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/application.css">
</head>
<body>
<main class="container">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class = "container">
<a class="navbar-brand" href="/">Bloccit</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarResponsive" areia-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/topics">Topics</a>
... to contain 'New Topic'.
Stack:
at <Jasmine>
at Request.request.get [as _callback] (/Users/clmaciel/bloc/bloccit/spec/integration/topics_spec.js:195:18)
at Request.self.callback (/Users/clmaciel/bloc/bloccit/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/Users/clmaciel/bloc/bloccit/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/Users/clmaciel/bloc/bloccit/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
2) routes : topics member user performing CRUD actions for Topic POST /topics/create should create a new topic and redirect
Message:
Expected 302 to be 303.
Stack:
Error: Expected 302 to be 303.
at <Jasmine>
at Topic.findOne.then (/Users/clmaciel/bloc/bloccit/spec/integration/topics_spec.js:214:30)
at tryCatcher (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
3) routes : topics member user performing CRUD actions for Topic POST /topics/:id/destroy should delete the topic with the associated ID
Message:
Expected 1 to be 0.
Stack:
Error: Expected 1 to be 0.
at <Jasmine>
at Topic.all.then (/Users/clmaciel/bloc/bloccit/spec/integration/topics_spec.js:248:31)
at tryCatcher (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
4) routes : topics member user performing CRUD actions for Topic GET /topics/:id/edit should render a view with an edit topic form
Message:
Expected '<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Bloccit</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/application.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class = "container">
<a class="navbar-brand" href="/">Bloccit</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarResponsive" areia-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="/topics">Topics</a>
</li>
<li class="nav-i ... to contain 'Edit Topic'.
Stack:
at <Jasmine>
at Request.request.get [as _callback] (/Users/clmaciel/bloc/bloccit/spec/integration/topics_spec.js:260:18)
at Request.self.callback (/Users/clmaciel/bloc/bloccit/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/Users/clmaciel/bloc/bloccit/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/Users/clmaciel/bloc/bloccit/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
5) routes : topics member user performing CRUD actions for Topic 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 (/Users/clmaciel/bloc/bloccit/spec/integration/topics_spec.js:283:27)
at tryCatcher (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/clmaciel/bloc/bloccit/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
14 specs, 5 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment