Skip to content

Commit 494d76d

Browse files
authored
chore(shell-api): Remove any usage in create clustered collection tests (#1286)
1 parent 94d87f4 commit 494d76d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/service-provider-server/src/cli-service-provider.integration.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,14 +668,12 @@ describe('CliServiceProvider [integration]', function() {
668668
it('allows clustered indexes on collections', async() => {
669669
await db.createCollection(
670670
'coll1',
671-
// TODO: Remove `any` usage once there is driver type support
672-
// for clustered collection indexes. NODE-4189
673671
{
674672
clusteredIndex: {
675673
key: { _id: 1 },
676674
unique: true
677675
}
678-
} as any
676+
}
679677
);
680678

681679
const collections = await serviceProvider.listCollections(dbName, {}, {});

packages/shell-api/src/integration.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,14 +490,12 @@ describe('Shell API (integration)', function() {
490490
await serviceProvider.createCollection(
491491
dbName,
492492
collectionName,
493-
// TODO: Remove `any` usage once there is driver type support
494-
// for clustered collection indexes. NODE-4189
495493
{
496494
clusteredIndex: {
497495
key: { _id: 1 },
498496
unique: true
499-
},
500-
} as any
497+
}
498+
}
501499
);
502500
});
503501

0 commit comments

Comments
 (0)