(test) add test. closes #104

This commit is contained in:
Kim Biesbjerg 2019-06-13 11:44:30 +02:00
parent 230b13e245
commit 36928e253d

View File

@ -21,9 +21,10 @@ describe('FunctionParser', () => {
otherFunction('But I am not');
_(message || 'binary expression');
_(message ? message : 'conditional operator');
_('FOO.bar');
`;
const keys = parser.extract(contents, componentFilename).keys();
expect(keys).to.deep.equal(['Hello world', 'I', 'am', 'extracted', 'binary expression', 'conditional operator']);
expect(keys).to.deep.equal(['Hello world', 'I', 'am', 'extracted', 'binary expression', 'conditional operator', 'FOO.bar']);
});
});