Skip to content

Instantly share code, notes, and snippets.

View mastilver's full-sized avatar

Thomas Sileghem mastilver

View GitHub Profile
@mastilver
mastilver / integration.js
Created August 17, 2017 10:51
sagas: unit vs integration tests
import { createAction } from 'redux-act';
import { call, takeLatest } from 'redux-saga/effects';
import { createStore, applyMiddleware } from 'redux'
import api from './api';
const action = createAction('action');
function *doSomething() {
yield call(api);
cd /usr/lib/slack/resources/app.asar.unpacked/src/static
mv slack-taskbar-highlight.png slack-taskbar-highlight-backup.png
cp slack-taskbar-rest.png slack-taskbar-highlight.png
@mastilver
mastilver / babel-blade-typings.ts
Last active October 10, 2019 09:56
babel-blade typings
interface Movie {
id: string;
name: string;
}
interface MovieArguments {
id: string
}
interface CallableMovie extends Movie {