I hereby claim:
- I am natterstefan on github.
- I am natterstefan (https://keybase.io/natterstefan) on keybase.
- I have a public key ASDj9cIeoiAekkMwiS1ZlqPPfts4yWHQ89OQNX8b_TOaHAo
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
{ | |
"extends": "airbnb", | |
"parser": "babel-eslint", | |
"env": { | |
"browser": false, | |
"node": true, | |
"es6": true, | |
"mocha": false | |
}, | |
"parserOptions": { |
I hereby claim:
To claim this, I am signing this object:
// Open form and submit enquire for `rego` | |
function getInfo(rego) { | |
horseman | |
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0') | |
.open(url) | |
.type('#registration-number-ctrl input[type=text]', rego) | |
.click('.btn-holder input') | |
.waitForSelector('.ctrl-holder.ctrl-readonly') | |
.html() | |
.then(function(body) { |
/** | |
* Components using the react-intl module require access to the intl context. | |
* This is not available when mounting single components in Enzyme. | |
* These helper functions aim to address that and wrap a valid, | |
* English-locale intl context around them. | |
* | |
* Docs | |
* - https://github.com/yahoo/react-intl/wiki/Testing-with-React-Intl#enzyme | |
* - https://github.com/yahoo/react-intl/wiki/Testing-with-React-Intl#snapshot-testing | |
* |
/* width */ | |
::-webkit-scrollbar { | |
width: 5px; | |
border: 1px solid #d5d5d5 | |
} | |
/* Track */ | |
::-webkit-scrollbar-track { | |
background: #f1f1f1; | |
} |
/* eslint-disable no-underscore-dangle */ | |
import React from 'react' | |
import PropTypes from 'prop-types' | |
import get from 'lodash.get' | |
import BemHelper from 'react-bem-helper' | |
import { apiClient } from '../../../common/api/client' | |
// Styling | |
const classes = new BemHelper('list') |
// inspired by (Credits): | |
// - A: https://davidwalsh.name/promises-results | |
// - B: https://nmaggioni.xyz/2016/10/13/Avoiding-Promise-all-fail-fast-behavior/ | |
// Solution A | |
await Promise.all(loadDataRequests.map(p => p.catch(() => undefined))) | |
// Solution B | |
await Promise.all( | |
loadDataRequests.map(p => |
The *.html example assumes you have integrated the tracking code as an iframe in the instant articles feed.
<figure class="op-tracker">
<iframe src="https://www.example.com/fia-google-analytics-tracking.html"></iframe>
</figure>
Taken from Jest's troubleshooting page:
debugger
; statement in any of your tests, and then, in your project's
directoryyarn test-debug
chrome://inspect