Skip to content

Instantly share code, notes, and snippets.

@bdirito
Created May 17, 2017 17:54
Show Gist options
  • Save bdirito/c25c94ceda2ed93560b56999d61ae408 to your computer and use it in GitHub Desktop.
Save bdirito/c25c94ceda2ed93560b56999d61ae408 to your computer and use it in GitHub Desktop.
foo = => {
Rx.Scheduler.asap.schedule( () => {
window.bar = 'baz';
});
}
// import { foo } from 'something'
it('should set bar', () => {
foo();
// Something?
expect(window.bar).toEqual('baz');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment