From cab94961dc19e51e3ef91cf7950120f654e5e8f5 Mon Sep 17 00:00:00 2001 From: andriikamaldinov1 Date: Fri, 6 Dec 2024 13:26:07 +0200 Subject: [PATCH] fix(ref: no-ref): fix issues --- projects/ngx-mask-lib/src/test/mask.pipe.spec.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/projects/ngx-mask-lib/src/test/mask.pipe.spec.ts b/projects/ngx-mask-lib/src/test/mask.pipe.spec.ts index 2ff1843b..7f4a47c5 100644 --- a/projects/ngx-mask-lib/src/test/mask.pipe.spec.ts +++ b/projects/ngx-mask-lib/src/test/mask.pipe.spec.ts @@ -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)'); }); });