Searched refs:joinWithCommasAnd (Results 1 – 4 of 4) sorted by relevance
| /expo/packages/@expo/cli/src/utils/__tests__/ |
| H A D | strings-test.ts | 1 import { joinWithCommasAnd } from '../strings'; 3 describe(joinWithCommasAnd, () => { 5 expect(joinWithCommasAnd(['a', 'b', 'c'])).toEqual('a, b, and c'); 9 expect(joinWithCommasAnd(['a', 'b'])).toEqual('a and b'); 13 expect(joinWithCommasAnd(['a'])).toEqual('a'); 17 expect(joinWithCommasAnd([])).toEqual(''); 21 expect(joinWithCommasAnd(['a', 'b', 'c', 'd', 'e'], 4)).toEqual('a, b, c, d, and 1 other'); 25 expect(joinWithCommasAnd(['a', 'b', 'c', 'd', 'e'], 4)).toEqual('a, b, c, d, and 1 other'); 29 expect(joinWithCommasAnd(['a', 'b', 'c', 'd', 'e', 'f'], 4)).toEqual( 35 expect(joinWithCommasAnd(['a', 'c', 'b', 'c'])).toEqual('a, c, and b');
|
| /expo/packages/@expo/cli/src/install/ |
| H A D | checkPackages.ts | 15 import { joinWithCommasAnd } from '../utils/strings'; 54 chalk`Skipped ${fix ? 'fixing' : 'checking'} dependencies: ${joinWithCommasAnd(
|
| H A D | installAsync.ts | 17 import { joinWithCommasAnd } from '../utils/strings'; 117 chalk`\u203A Using latest version instead of ${joinWithCommasAnd(
|
| /expo/packages/@expo/cli/src/utils/ |
| H A D | strings.ts | 7 export function joinWithCommasAnd(items: string[], limit: number | undefined = 10): string { function
|