| 181 | |
| 182 | it('shows six names with the rest counted, and says plainly when the answer is likely made up', () => { |
| 183 | const names = (count: number) => Array.from({ length: count }, (_, index) => `made_up_${index}`); |
| 184 | expect(browserChatText.unsupportedNames(names(7))).toBe('Not in the source or graph facts this answer was given: made_up_0, made_up_1, made_up_2, ' |
| 185 | + 'made_up_3, made_up_4, made_up_5, +1 more. Check these names before relying on them.'); |
| 186 | expect(browserChatText.unsupportedNames(names(21))).toBe('21 names in this answer are not in the source or graph facts it was given: made_up_0, made_up_1, ' |