Skip to content

Instantly share code, notes, and snippets.

@jennjwill
Created October 15, 2019 00:02
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/2b66b508fec6d164169211a6a4dc7cfd to your computer and use it in GitHub Desktop.
Save jennjwill/2b66b508fec6d164169211a6a4dc7cfd to your computer and use it in GitHub Desktop.
test fail msg with morgan data at beginning (note 500 error on line 31)
npm test
> 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 17.356 ms - 2933
.GET /users/sign_up 200 3.640 ms - 3298
.POST /users/sign_up 302 251.127 ms - 23
.POST /users/sign_up 302 169.122 ms - 23
.POST /users/sign_up 302 2.108 ms - 31
.GET /users/sign_in 200 4.007 ms - 3323
.GET /auth/fake 302 1.222 ms - 23
GET / 200 3.766 ms - 2933
GET /wikis/ 200 10.585 ms - 2106
.GET /auth/fake 302 1.105 ms - 23
GET / 200 3.823 ms - 2933
GET /wikis/new 302 2.132 ms - 28
GET /wikis 200 5.794 ms - 2106
USER in wikis/new is= 1
.GET /auth/fake 302 1.611 ms - 23
GET / 200 3.503 ms - 2933
POST /wikis/create 303 8.959 ms - 34
.GET /auth/fake 302 0.851 ms - 23
GET / 200 3.341 ms - 2933
GET /wikis/1 200 19.612 ms - 1956
.GET /auth/fake 302 1.703 ms - 23
GET / 200 3.507 ms - 2933
INSIDE EDIT fxn. Thru Authorizer
GET /wikis/1/edit 500 16.437 ms - 3482
WIKI ID is= 1
FGET /auth/fake 302 1.018 ms - 23
GET / 200 4.676 ms - 2933
POST /wikis/1/update 302 9.728 ms - 30
.GET /auth/fake 302 2.866 ms - 23
GET / 200 3.534 ms - 2933
POST /wikis/1/update 302 5.019 ms - 30
.GET /auth/fake 302 1.561 ms - 23
GET / 200 5.168 ms - 2933
POST /wikis/1/destroy 303 8.572 ms - 32
.....
Failures:
1) 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:302: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, 1 failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment