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)'); }); });