Fix missing translations, enable dutch language (#878)
* Fix missing translations, enable dutch language
This commit is contained in:
parent
3f5ce2ddbf
commit
8af200ad20
16 changed files with 216 additions and 107 deletions
|
@ -1,26 +0,0 @@
|
|||
import { getAvailableAgentsText } from '../utils';
|
||||
|
||||
describe('#getAvailableAgentsText', () => {
|
||||
it('returns the correct text is there is only one online agent', () => {
|
||||
expect(getAvailableAgentsText([{ name: 'Pranav' }])).toEqual(
|
||||
'Pranav is available'
|
||||
);
|
||||
});
|
||||
|
||||
it('returns the correct text is there are two online agents', () => {
|
||||
expect(
|
||||
getAvailableAgentsText([{ name: 'Pranav' }, { name: 'Nithin' }])
|
||||
).toEqual('Pranav and Nithin are available');
|
||||
});
|
||||
|
||||
it('returns the correct text is there are more than two online agents', () => {
|
||||
expect(
|
||||
getAvailableAgentsText([
|
||||
{ name: 'Pranav' },
|
||||
{ name: 'Nithin' },
|
||||
{ name: 'Subin' },
|
||||
{ name: 'Sojan' },
|
||||
])
|
||||
).toEqual('Pranav and 3 others are available');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue