Created
March 29, 2018 11:38
-
-
Save theKashey/6b02505c27d0114df6485b5dfcee9938 to your computer and use it in GitHub Desktop.
dooms-day TD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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