Skip to content

Instantly share code, notes, and snippets.

View IgorGee's full-sized avatar
😬

Igor IgorGee

😬
View GitHub Profile
@IgorGee
IgorGee / style-components.test.js
Last active March 14, 2017 17:44
Attempting to unit test with styled components
// Title.js
import styled from 'styled-components'
const Title = styled.h1`
text-align: center;
color: green;
`
// Home.js
import Title from 'components/Title'
const spawn = require('child_process').spawn
const exec = require('child_process').exec
const fork = require('child_process').fork
const miner = spawn("./miner.sh")
const shouldRestart = (line) => {
const launchFailString = new RegExp(/unspecified launch failure/)
const staleDataString = new RegExp(/Submitting stale solution/)
return launchFailString.test(line) || staleDataString.test(line)
}