Skip to content

Commit

Permalink
fix(module:textarea): fix textarea test case error (NG-ZORRO#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
sWhite01111 authored and 3fuyu committed Oct 12, 2018
1 parent e312967 commit 97639fc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/textarea-item/textarea-item.component.spec.ts
Expand Up @@ -150,12 +150,9 @@ describe('TextareaComponent', () => {
});

it('should focus work', () => {
component.value = 'test';
fixture.detectChanges();
component.clickTitle();
fixture.detectChanges();
const inputDivEle = textareaEle.nativeElement.querySelector('.am-textarea-item');
expect(inputDivEle.classList).toContain('am-textarea-focus');
expect(component.focusFn).toHaveBeenCalled();
});
it('should errorClickFn work', () => {
component.error = true;
Expand Down

0 comments on commit 97639fc

Please sign in to comment.