Skip to content

Instantly share code, notes, and snippets.

@theKashey
Created March 29, 2018 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theKashey/6b02505c27d0114df6485b5dfcee9938 to your computer and use it in GitHub Desktop.
Save theKashey/6b02505c27d0114df6485b5dfcee9938 to your computer and use it in GitHub Desktop.
dooms-day TD
import td from 'testdouble';
const {Launch} = td.replace('./rocket-silo'); // automock
const scheduler = td.replace('doom-scheduler', { theDay: Promise.resolve() })
require('./dooms-day.js');
td.verify(Launch());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment