Skip to content

Instantly share code, notes, and snippets.

@jennjwill
Created October 14, 2019 22:06
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 jennjwill/29082df2f20aa66923fb10307d009a98 to your computer and use it in GitHub Desktop.
Save jennjwill/29082df2f20aa66923fb10307d009a98 to your computer and use it in GitHub Desktop.
spec test failure details
> blocipedia-node@1.0.0 test C:\Users\Willz\bloc\blocipedia-node
> set NODE_ENV=test&& jasmine
Started
server is listening for requests on port 3000
GET / 200 13.912 ms - 2933
.GET /users/sign_up 200 2.882 ms - 3298
.POST /users/sign_up 302 203.928 ms - 23
.POST /users/sign_up 302 151.305 ms - 23
.POST /users/sign_up 302 1.891 ms - 31
.GET /users/sign_in 200 4.424 ms - 3323
.GET /auth/fake 302 1.642 ms - 23
GET / 200 3.063 ms - 2933
GET /wikis/ 200 8.890 ms - 2106
.GET /auth/fake 302 0.784 ms - 23
GET / 200 2.530 ms - 2933
Got thru Authorized in NEW fxn but before render
GET /wikis/new 500 7.321 ms - 3486
USER in wikis/new is= 1
FGET /auth/fake 302 1.319 ms - 23
GET / 200 2.287 ms - 2933
POST /wikis/create 303 8.339 ms - 34
.GET /auth/fake 302 1.310 ms - 23
GET / 200 2.147 ms - 2933
GET /wikis/1 200 15.918 ms - 1956
.GET /auth/fake 302 0.680 ms - 23
GET / 200 3.882 ms - 2933
INSIDE EDIT fxn. Thru Authorizer
GET /wikis/1/edit 500 9.937 ms - 3482
FGET /auth/fake 302 0.689 ms - 23
GET / 200 3.221 ms - 2933
POST /wikis/1/update 302 8.105 ms - 30
.GET /auth/fake 302 0.686 ms - 23
GET / 200 2.852 ms - 2933
POST /wikis/1/update 302 3.446 ms - 30
.GET /auth/fake 302 1.232 ms - 23
GET / 200 2.319 ms - 2933
POST /wikis/1/destroy 303 4.246 ms - 32
.....
Failures:
1) routes : wikis GET /wikis/new should render a view with a new wiki form
Message:
Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>TypeError: C:\Users\Willz\bloc\blocipedia-node\src\views\wikis\new.ejs:<br> &gt;&gt; 33| &nbsp; &nbsp; &nbsp; &nbsp; &lt;% if(currentUser.role !== &quo<br> &nbsp; &nbsp;34| &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;form-group<br> &nbsp; &nbsp;35| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for=&quot;pri<br> &nbsp; &nbsp;36| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select classs=&quot<br><br>Cannot read property &#39;role&#39; of undefined<br> &nbsp; &nbsp;at eval (eval at compile (C:\Users\Willz\bloc\blocipedia-node\node_modules\ejs\lib\ejs.js:633:12), &lt;anonymous&gt;:90:23)<br> &nbsp; &nbsp;at r ... to contain 'JavaScript'.
Stack:
Error: Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>TypeError: C:\Users\Willz\bloc\blocipedia-node\src\views\wikis\new.ejs:<br> &gt;&gt; 33| &nbsp; &nbsp; &nbsp; &nbsp; &lt;% if(currentUser.role !== &quo<br> &nbsp; &nbsp;34| &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;form-group<br> &nbsp; &nbsp;35| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label for=&quot;pri<br> &nbsp; &nbsp;36| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select classs=&quot<br><br>Cannot read property &#39;role&#39; of undefined<br> &nbsp; &nbsp;at eval (eval at compile (C:\Users\Willz\bloc\blocipedia-node\node_modules\ejs\lib\ejs.js:633:12), &lt;anonymous&gt;:90:23)<br> &nbsp; &nbsp;at r ... to contain 'JavaScript'.
at <Jasmine>
at Request.request.get [as _callback] (C:\Users\Willz\bloc\blocipedia-node\spec\integration\wikis_spec.js:255:22)
at Request.self.callback (C:\Users\Willz\bloc\blocipedia-node\node_modules\request\request.js:186:22)
at Request.emit (events.js:197:13)
at Request.<anonymous> (C:\Users\Willz\bloc\blocipedia-node\node_modules\request\request.js:1163:10)
at Request.emit (events.js:197:13)
at IncomingMessage.<anonymous> (C:\Users\Willz\bloc\blocipedia-node\node_modules\request\request.js:1085:12)
at Object.onceWrapper (events.js:285:13)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1132:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
2) routes : wikis GET /wikis/:id/edit should render a view with an edit wiki form
Message:
Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>TypeError: C:\Users\Willz\bloc\blocipedia-node\src\views\wikis\edit.ejs<br> &nbsp; &nbsp;45| &nbsp; &nbsp; &nbsp; &nbsp; &lt;button type=&quot;submit&q<br> &gt;&gt; 46| &nbsp; &nbsp; &nbsp; &nbsp; &lt;% if(!currentUser.isStandard &<br> &nbsp; &nbsp;47| &nbsp; &nbsp; &nbsp; &nbsp; currentUser &amp;&amp; current<br> &nbsp; &nbsp;48| &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/wikis/&lt;%=<br> &nbsp; &nbsp;49| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;Edit Collaborators&<br><br>Cannot read property &#39;isStandard&#39; of undefined<br> &nbsp; &nbsp;at eval (eval at compile (C:\Users\Willz\bloc\blocipedia-node\node_m ... to contain 'Edit Wiki'.
Stack:
Error: Expected '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>TypeError: C:\Users\Willz\bloc\blocipedia-node\src\views\wikis\edit.ejs<br> &nbsp; &nbsp;45| &nbsp; &nbsp; &nbsp; &nbsp; &lt;button type=&quot;submit&q<br> &gt;&gt; 46| &nbsp; &nbsp; &nbsp; &nbsp; &lt;% if(!currentUser.isStandard &<br> &nbsp; &nbsp;47| &nbsp; &nbsp; &nbsp; &nbsp; currentUser &amp;&amp; current<br> &nbsp; &nbsp;48| &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;/wikis/&lt;%=<br> &nbsp; &nbsp;49| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;Edit Collaborators&<br><br>Cannot read property &#39;isStandard&#39; of undefined<br> &nbsp; &nbsp;at eval (eval at compile (C:\Users\Willz\bloc\blocipedia-node\node_m ... to contain 'Edit Wiki'.
at <Jasmine>
at Request.request.get [as _callback] (C:\Users\Willz\bloc\blocipedia-node\spec\integration\wikis_spec.js:301:22)
at Request.self.callback (C:\Users\Willz\bloc\blocipedia-node\node_modules\request\request.js:186:22)
at Request.emit (events.js:197:13)
at Request.<anonymous> (C:\Users\Willz\bloc\blocipedia-node\node_modules\request\request.js:1163:10)
at Request.emit (events.js:197:13)
at IncomingMessage.<anonymous> (C:\Users\Willz\bloc\blocipedia-node\node_modules\request\request.js:1085:12)
at Object.onceWrapper (events.js:285:13)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1132:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
18 specs, 2 failures
Finished in 1.692 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment