Created
October 6, 2016 14:56
-
-
Save psamsotha/2c3608ec9b6be423ed027fc2fda710b4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| it('can call I18n.get.', async(() => { | |
| comp.content.nativeElement.innerHTML = 'nope'; | |
| comp.key = 'my-key'; | |
| comp.domain = 'StackOverflowDomain'; | |
| comp.ngOnChanges(); | |
| fixture.whenStable().then(() => { | |
| fixture.detectChanges(); | |
| // fixture.detectChanges(); | |
| expect(comp.text).toBe('hello'); | |
| }); | |
| // comp.ngOnChanges(); | |
| // tick(1000); | |
| })); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment