Last active
October 7, 2017 22:11
-
-
Save cakeinpanic/64eafe952c8ec0b923753e362a75aa25 to your computer and use it in GitHub Desktop.
gist for medium
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
// method we are testing | |
class MyService { | |
someMethod() { | |
Observable.interval(1000) | |
.subscribe(() => { | |
this.logger.logObservable(); | |
}); | |
setInterval(() => { | |
this.logger.logInterval(); | |
}, 1500); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment