We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
undefined
pluralize
1 parent 593ca57 commit 8737cfdCopy full SHA for 8737cfd
extensions/ql-vscode/test/pure-tests/word.test.ts
@@ -13,5 +13,8 @@ describe('word helpers', () => {
13
it('should return the plural form if the number is greater than 1', () => {
14
expect(pluralize(7, 'thing', 'things')).to.eq('7 things');
15
});
16
+ it('should return the empty string if the number is undefined', () => {
17
+ expect(pluralize(undefined, 'thing', 'things')).to.eq('');
18
+ });
19
20
0 commit comments