Skip to content

Commit 95231cb

Browse files
committed
tweak
1 parent 40a5f31 commit 95231cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tool/grind.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,9 +1256,9 @@ Future<void> testDartdocFlutterPlugin() async {
12561256
void validateSdkDocs() {
12571257
// TODO(jcollins-g): Remove flexibility in library counts once dev build
12581258
// includes https://dart-review.googlesource.com/c/sdk/+/93160
1259-
const expectedLibCounts = [0, 1];
1260-
const expectedSubLibCount = [18, 19, 20];
1261-
const expectedTotalCount = [19, 20];
1259+
const expectedLibCounts = {0, 1};
1260+
const expectedSubLibCount = {18, 19, 20};
1261+
const expectedTotalCount = {18, 19, 20};
12621262
var indexHtml = joinFile(sdkDocsDir, ['index.html']);
12631263
if (!indexHtml.existsSync()) {
12641264
fail('no index.html found for SDK docs');
@@ -1285,7 +1285,7 @@ void validateSdkDocs() {
12851285
sdkDocsDir.listSync().where((fs) => fs.path.contains('dart-')).length;
12861286
if (!expectedTotalCount.contains(libsLength)) {
12871287
fail('docs not generated for all the SDK libraries, '
1288-
'expected ${expectedTotalCount + expectedTotalCount} directories, generated $libsLength directories');
1288+
'expected $expectedTotalCount directories, generated $libsLength directories');
12891289
}
12901290
log('$libsLength dart: libraries found');
12911291

0 commit comments

Comments
 (0)