Skip to content

Instantly share code, notes, and snippets.

@jennjwill
Created September 9, 2019 20:40
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/dc678ef2ad025574b2715534f40f8ad6 to your computer and use it in GitHub Desktop.
Save jennjwill/dc678ef2ad025574b2715534f40f8ad6 to your computer and use it in GitHub Desktop.
npm test errors
npm test
> bloccit@1.0.0 test C:\Users\Willz\bloc\bloccit
> set NODE_ENV=test&& jasmine
Mon, 09 Sep 2019 19:59:58 GMT sequelize deprecated String based operators are now deprecated. Please use Symbol based operators for better security, read more at http://docs.sequelizejs.com/manual/tutorial/querying.html#operators at node_modules\sequelize\lib\sequelize.js:237:13
Started
server is listening for requests on port 3000
....FF....value of this:[object Object]
......................{ id: '1', email: 'user@example.com', role: 'member' }
.{ id: '1', email: 'no', role: 'member' }
.............................
Failures:
1) routes : posts guest user performing CRUD actions for Post GET /topics/:topicId/posts/new should not render a new post form
Message:
Expected '<!DOCTYPE html>
<html>
<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
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarResponsive"
aria-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= ... to contain 'Error'.
Stack:
Error: Expected '<!DOCTYPE html>
at <Jasmine>
at Request.request.get [as _callback] (C:\Users\Willz\bloc\bloccit\spec\integration\posts-spec.js:65:24)
at Request.self.callback (C:\Users\Willz\bloc\bloccit\node_modules\request\request.js:186:22)
at Request.emit (events.js:197:13)
at Request.<anonymous> (C:\Users\Willz\bloc\bloccit\node_modules\request\request.js:1163:10)
at Request.emit (events.js:197:13)
at IncomingMessage.<anonymous> (C:\Users\Willz\bloc\bloccit\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 : posts guest user performing CRUD actions for Post POST /topics/:topicId/posts/create should not create a new post
Message:
Expected [object SequelizeInstance:Post] to be null.
Stack:
Error: Expected [object SequelizeInstance:Post] to be null.
at <Jasmine>
at Post.findOne.then.post (C:\Users\Willz\bloc\bloccit\spec\integration\posts-spec.js:84:28)
at tryCatcher (C:\Users\Willz\bloc\bloccit\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\Willz\bloc\bloccit\node_modules\bluebird\js\release\promise.js:517:31)
at Promise._settlePromise (C:\Users\Willz\bloc\bloccit\node_modules\bluebird\js\release\promise.js:574:18)
at Promise._settlePromise0 (C:\Users\Willz\bloc\bloccit\node_modules\bluebird\js\release\promise.js:619:10)
at Promise._settlePromises (C:\Users\Willz\bloc\bloccit\node_modules\bluebird\js\release\promise.js:699:18)
at _drainQueueStep (C:\Users\Willz\bloc\bloccit\node_modules\bluebird\js\release\async.js:138:12)
at _drainQueue (C:\Users\Willz\bloc\bloccit\node_modules\bluebird\js\release\async.js:131:9)
at Async._drainQueues (C:\Users\Willz\bloc\bloccit\node_modules\bluebird\js\release\async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\Users\Willz\bloc\bloccit\node_modules\bluebird\js\release\async.js:17:14)
at processImmediate (timers.js:637:19)
62 specs, 2 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment