Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NepipenkoIgor committed Apr 17, 2019
1 parent f4713ad commit adedb10
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/ngx-mask/test/secure-mask.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@ describe('Directive: Mask', () => {
expect(component.form.value).toBe('123456789');
expect(component.ngModelValue).toBe('123456789');
});

it('it checks secure input functionality ', () => {
component.mask = '0000-X0-XXXX';
component.hiddenInput = true;
equal('123456789', '1234-*6-***', fixture);
expect(component.form.value).toBe('123456789');
expect(component.ngModelValue).toBe('123456789');
});
});

0 comments on commit adedb10

Please sign in to comment.