From a0f2b69f3616ac1cf3b2b72cd044996458843010 Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Sun, 22 Mar 2020 10:45:52 +0100 Subject: [PATCH] Add test. Closes #150 --- tests/parsers/pipe.parser.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/parsers/pipe.parser.spec.ts b/tests/parsers/pipe.parser.spec.ts index fe30389..20aaf9c 100644 --- a/tests/parsers/pipe.parser.spec.ts +++ b/tests/parsers/pipe.parser.spec.ts @@ -153,4 +153,10 @@ describe('PipeParser', () => { const keys = parser.extract(contents, templateFilename).keys(); expect(keys).to.deep.equal([]); }); + + it('should not extract pipe argument', () => { + const contents = `{{ value | valueToTranslationKey: 'argument' | translate }}`; + const keys = parser.extract(contents, templateFilename).keys(); + expect(keys).to.deep.equal([]); + }); });