Add test for ignoring calculated values. Closes #128
This commit is contained in:
parent
6ed962fa6e
commit
13f46a524f
1
tests/app/login.html
Normal file
1
tests/app/login.html
Normal file
@ -0,0 +1 @@
|
||||
{{ 'SOURCES.' + source.name + '.NAME_PLURAL' | translate }}
|
@ -147,4 +147,10 @@ describe('PipeParser', () => {
|
||||
const keys = parser.extract(contents, templateFilename).keys();
|
||||
expect(keys).to.deep.equal(['message']);
|
||||
});
|
||||
|
||||
it('should ignore calculated values', () => {
|
||||
const contents = `{{ 'SOURCES.' + source.name + '.NAME_PLURAL' | translate }}`;
|
||||
const keys = parser.extract(contents, templateFilename).keys();
|
||||
expect(keys).to.deep.equal([]);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user