Add test. Closes #150

This commit is contained in:
Kim Biesbjerg 2020-03-22 10:45:52 +01:00
parent 13f46a524f
commit a0f2b69f36

View File

@ -153,4 +153,10 @@ describe('PipeParser', () => {
const keys = parser.extract(contents, templateFilename).keys(); const keys = parser.extract(contents, templateFilename).keys();
expect(keys).to.deep.equal([]); 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([]);
});
}); });