From 920b0e3f8d888fd1573e5b002b1c43f267d93c6d Mon Sep 17 00:00:00 2001 From: Daniel Rowe <47305015+DanRowe@users.noreply.github.com> Date: Fri, 10 Jun 2022 06:29:37 -0400 Subject: [PATCH] docs: testSequencer example use destructured arguments (#12915) --- docs/Configuration.md | 6 +++--- website/versioned_docs/version-28.0/Configuration.md | 6 +++--- website/versioned_docs/version-28.1/Configuration.md | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/Configuration.md b/docs/Configuration.md index 389169ccc708..ffc4b4f35b6a 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -2031,9 +2031,9 @@ class CustomSequencer extends Sequencer { * Sharding is applied before sorting */ shard(tests, {shardIndex, shardCount}) { - const shardSize = Math.ceil(tests.length / options.shardCount); - const shardStart = shardSize * (options.shardIndex - 1); - const shardEnd = shardSize * options.shardIndex; + const shardSize = Math.ceil(tests.length / shardCount); + const shardStart = shardSize * (shardIndex - 1); + const shardEnd = shardSize * shardIndex; return [...tests] .sort((a, b) => (a.path > b.path ? 1 : -1)) diff --git a/website/versioned_docs/version-28.0/Configuration.md b/website/versioned_docs/version-28.0/Configuration.md index bee140ad87d4..719550361156 100644 --- a/website/versioned_docs/version-28.0/Configuration.md +++ b/website/versioned_docs/version-28.0/Configuration.md @@ -1553,9 +1553,9 @@ class CustomSequencer extends Sequencer { * Sharding is applied before sorting */ shard(tests, {shardIndex, shardCount}) { - const shardSize = Math.ceil(tests.length / options.shardCount); - const shardStart = shardSize * (options.shardIndex - 1); - const shardEnd = shardSize * options.shardIndex; + const shardSize = Math.ceil(tests.length / shardCount); + const shardStart = shardSize * (shardIndex - 1); + const shardEnd = shardSize * shardIndex; return [...tests] .sort((a, b) => (a.path > b.path ? 1 : -1)) diff --git a/website/versioned_docs/version-28.1/Configuration.md b/website/versioned_docs/version-28.1/Configuration.md index 6fa8810046e8..2fb7d6f518f1 100644 --- a/website/versioned_docs/version-28.1/Configuration.md +++ b/website/versioned_docs/version-28.1/Configuration.md @@ -1557,9 +1557,9 @@ class CustomSequencer extends Sequencer { * Sharding is applied before sorting */ shard(tests, {shardIndex, shardCount}) { - const shardSize = Math.ceil(tests.length / options.shardCount); - const shardStart = shardSize * (options.shardIndex - 1); - const shardEnd = shardSize * options.shardIndex; + const shardSize = Math.ceil(tests.length / shardCount); + const shardStart = shardSize * (shardIndex - 1); + const shardEnd = shardSize * shardIndex; return [...tests] .sort((a, b) => (a.path > b.path ? 1 : -1))