Skip to content

Commit 6aea86b

Browse files
committed
Fixup tests in types
1 parent ab38d5a commit 6aea86b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ describe('resolveMongodbSrv', () => {
173173
this.timeout(30_000);
174174

175175
it('works', async () => {
176-
const str = await resolveMongodbSrv('mongodb+srv://user:password@cluster0.ucdwm.mongodb.net/', dnsProvider);
176+
const str = await resolveMongodbSrv('mongodb+srv://user:password@cluster0.ucdwm.mongodb.net/', { dns: dnsProvider } as any);
177177
assert([
178178
'mongodb://user:password@cluster0-shard-00-00.ucdwm.mongodb.net,cluster0-shard-00-01.ucdwm.mongodb.net,cluster0-shard-00-02.ucdwm.mongodb.net/?authSource=admin&replicaSet=atlas-jt9dqp-shard-0&tls=true',
179179
'mongodb://user:password@cluster0-shard-00-00.ucdwm.mongodb.net,cluster0-shard-00-02.ucdwm.mongodb.net,cluster0-shard-00-01.ucdwm.mongodb.net/?authSource=admin&replicaSet=atlas-jt9dqp-shard-0&tls=true',

0 commit comments

Comments
 (0)