Skip to content

Instantly share code, notes, and snippets.

View jennjwill's full-sized avatar

Jenn Will jennjwill

  • Tempe, Arizona
View GitHub Profile
@jennjwill
jennjwill / gist:2b66b508fec6d164169211a6a4dc7cfd
Created October 15, 2019 00:02
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
@jennjwill
jennjwill / gist:dce9c2fcbd310a372ec7b078aa3c44f1
Created October 14, 2019 23:13
one spec failing, plus morgan details above it--see 500 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.926 ms - 2933
.GET /users/sign_up 200 4.273 ms - 3298
.POST /users/sign_up 302 251.248 ms - 23
@jennjwill
jennjwill / gist:29082df2f20aa66923fb10307d009a98
Created October 14, 2019 22:06
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
@jennjwill
jennjwill / gist:43e124d102f1f337ba8ef7afa385eb0d
Created October 14, 2019 18:38
wiki specs test failures plus morgan routing details above
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 13.726 ms - 2933
.GET /users/sign_up 200 3.016 ms - 3298
.POST /users/sign_up 302 204.943 ms - 23
//import {math} from './math.js';
// 6 Assume that there is a `math.js` file that performs various mathematical operations on pairs of integers. Design a Jasmine suite with the following unit tests.
// - A spec for the addition(+) operation. (test.add(num1, num2))
// - A spec for the subtraction(-) operation. (test.subtract(num1, num2))
// - A spec for the multiplication(*) operation. (test.multiply(num1,num2))
// - A spec for the division(/) operation. (test.divide(num1, num2))
// - A spec to throw an error if an operation tries to divide by zero.
//add the associated specs under each comment
@jennjwill
jennjwill / test fails
Created September 17, 2019 22:35
jenn will test fails wiki-crud
Started
server is listening for requests on port 3000
GET / 200 16.228 ms - 2824
.GET /users/sign_up 200 4.275 ms - 3190
.POST /users/sign_up 302 272.236 ms - 23
.POST /users/sign_up 302 190.580 ms - 23
.FPOST /users/sign_up 302 1.746 ms - 31
FGET /users/sign_in 200 4.231 ms - 3215
{ SequelizeDatabaseError: relation "Users" does not exist
at Query.formatError (C:\Users\Willz\bloc\blocipedia-node\node_modules\sequelize\lib\dialects\postgres\query.js:363:16)
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' }
@jennjwill
jennjwill / gist:e0e731061cddb2df5e64e9c89c2d3ccd
Created July 5, 2019 19:38
bloc relational databases assignment
library=# SELECT * FROM books;
id | title | author
------+------------------------------------------+---------------------
1259 | Eloquent Ruby | Russell A. Olson
1593 | JavaScript: The Good Parts | Douglas Crockford
8982 | Designing Object-Oriented Software | Rebecca Wirfs-Brock
7265 | Practical Object-Oriented Design in Ruby | Sandi Metz
(4 rows)
inventory=# SELECT * FROM products;
productid | name | price
-----------+----------------------------+--------
11773 | South Face Jacket | 174.99
11774 | Big Mountain 2-Person Tent | 219.99
11775 | King Cole Camp Stove | 34.99
11776 | Oregon Trail Mountain Bike | 579.99
(4 rows)