@carecard/auth-util 3.18.0 → 3.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,9 @@ function resolveParallelJobCount(
15
15
  availableJobCount = availableParallelism(),
16
16
  ) {
17
17
  const requestedJobCount =
18
- configuredJobCount === undefined ? Math.min(availableJobCount, defaultMaximum) : Number.parseInt(configuredJobCount, 10);
18
+ configuredJobCount === undefined
19
+ ? Math.min(availableJobCount, defaultMaximum)
20
+ : Number.parseInt(configuredJobCount, 10);
19
21
 
20
22
  if (!Number.isInteger(requestedJobCount) || requestedJobCount < 1) {
21
23
  throw new Error('TEST_PARALLEL_JOBS must be a positive integer.');
@@ -12,10 +12,16 @@ test('uses bounded Mocha file workers without randomized default ordering', () =
12
12
  const argumentsList = buildMochaArguments(['test/example.test.js'], 2);
13
13
 
14
14
  assert.ok(argumentsList.includes('--parallel'));
15
- assert.deepEqual(argumentsList.slice(argumentsList.indexOf('--jobs'), argumentsList.indexOf('--jobs') + 2), ['--jobs', '2']);
15
+ assert.deepEqual(
16
+ argumentsList.slice(argumentsList.indexOf('--jobs'), argumentsList.indexOf('--jobs') + 2),
17
+ ['--jobs', '2'],
18
+ );
16
19
  assert.ok(argumentsList.includes('test/example.test.js'));
17
20
  });
18
21
 
19
22
  test('rejects invalid worker configuration instead of changing execution silently', () => {
20
- assert.throws(() => resolveParallelJobCount('0', 8, 4, 12), /TEST_PARALLEL_JOBS must be a positive integer/);
23
+ assert.throws(
24
+ () => resolveParallelJobCount('0', 8, 4, 12),
25
+ /TEST_PARALLEL_JOBS must be a positive integer/,
26
+ );
21
27
  });