Skip to content

Instantly share code, notes, and snippets.

@psamsotha
Created October 6, 2016 14:56
Show Gist options
  • Select an option

  • Save psamsotha/2c3608ec9b6be423ed027fc2fda710b4 to your computer and use it in GitHub Desktop.

Select an option

Save psamsotha/2c3608ec9b6be423ed027fc2fda710b4 to your computer and use it in GitHub Desktop.
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