Skip to content

Instantly share code, notes, and snippets.

Danny Friday nessup

View GitHub Profile
View gist:269b8b85fde029d9b721a3ce55ed2d59
### Keybase proof
I hereby claim:
* I am nessup on github.
* I am nessup (https://keybase.io/nessup) on keybase.
* I have a public key ASCKNdmzkv31EwKTBmmGV21nINb3YwgFbdfQfU8XBo1QGQo
To claim this, I am signing this object:
@nessup
nessup / fix.js
Created Mar 6, 2019
Fixed expectation in TDD tutorial
View fix.js
waitForDomChange({ container })
.then(() => {
// Assert
expect(props.createComment).toHaveBeenCalledTimes(1)
expect(props.createComment).toHaveBeenCalledWith(newComment)
})
View listing_filter.js
var Joi = require('joi');
/*
* Test listings
*/
let listings = [
{
'id':4522,
'listing_price_cents':33700000,
View index.html
<!doctype html>
<head>
<!-- ... -->
<script src="bower_components/x-gif/dist/platform.js"></script>
<!-- ... -->
</head>
<body>
<!-- ... -->
<!-- build:js scripts/main.js -->
<script data-main="scripts/main" src="bower_components/requirejs/require.js"></script>
You can’t perform that action at this time.