Skip to content

Commit

Permalink
fix(ref: no-ref): fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andriikamaldinov1 committed Dec 6, 2024
1 parent ca691e6 commit cab9496
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions projects/ngx-mask-lib/src/test/mask.pipe.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,16 +352,14 @@ describe('Pipe: Mask', () => {
});

it('should show second pipe without suffix', () => {
const valueWithSuffix: string | number = maskPipe.transform('55555', '00 (000)', {
const valueWithSuffix: string | number = maskPipe.transform('55555 ', '00 (000)', {
suffix: ' DDD',
});
const valueWithPrefix: string | number = maskPipe.transform('55555', '00 (000)', {
const valueWithPrefix: string | number = maskPipe.transform('55555 ', '00 (000)', {
prefix: 'DDD ',
});

requestAnimationFrame(() => {
expect(valueWithSuffix).toEqual('55 (555) DDD');
expect(valueWithPrefix).toEqual('DDD 55 (555)');
});
expect(valueWithSuffix).toEqual('55 (555) DDD');
expect(valueWithPrefix).toEqual('DDD 55 (555)');
});
});

0 comments on commit cab9496

Please sign in to comment.