Home
last modified time | relevance | path

Searched refs:joinWithCommasAnd (Results 1 – 4 of 4) sorted by relevance

/expo/packages/@expo/cli/src/utils/__tests__/
H A Dstrings-test.ts1 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 DcheckPackages.ts15 import { joinWithCommasAnd } from '../utils/strings';
54 chalk`Skipped ${fix ? 'fixing' : 'checking'} dependencies: ${joinWithCommasAnd(
H A DinstallAsync.ts17 import { joinWithCommasAnd } from '../utils/strings';
117 chalk`\u203A Using latest version instead of ${joinWithCommasAnd(
/expo/packages/@expo/cli/src/utils/
H A Dstrings.ts7 export function joinWithCommasAnd(items: string[], limit: number | undefined = 10): string { function