Created
May 17, 2017 17:59
-
-
Save bdirito/a83b955120a9790399a6d091e636ad21 to your computer and use it in GitHub Desktop.
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
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