Skip to content

Instantly share code, notes, and snippets.

@bdirito
Created May 17, 2017 17:59
Show Gist options
  • Save bdirito/a83b955120a9790399a6d091e636ad21 to your computer and use it in GitHub Desktop.
Save bdirito/a83b955120a9790399a6d091e636ad21 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', (done) => {
foo();
// Something?
expect(window.bar).toEqual('baz');
done(); // async code done
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment