Skip to content

Commit f7b2010

Browse files
committed
chore: style check fixes
1 parent 778582b commit f7b2010

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/integration/tools/mongodb/read/aggregate.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
validateThrowsForInvalidArguments,
55
getResponseContent,
66
defaultTestConfig,
7-
getDataFromUntrustedContent,
87
} from "../../../helpers.js";
98
import { beforeEach, describe, expect, it, vi, afterEach } from "vitest";
109
import {
@@ -483,7 +482,7 @@ describeWithMongoDB(
483482
expect(responseContent).toContain("The aggregation resulted in 1 documents. Returning 1 documents.");
484483
const untrustedDocs = getDocsFromUntrustedContent<{ name: string }>(responseContent);
485484
expect(untrustedDocs).toHaveLength(1);
486-
expect(untrustedDocs[0]!!.name).toBe("mongodb");
485+
expect(untrustedDocs[0]?.name).toBe("mongodb");
487486
}
488487
);
489488

@@ -544,7 +543,7 @@ describeWithMongoDB(
544543
expect(responseContent).toContain("The aggregation resulted in 1 documents. Returning 1 documents.");
545544
const untrustedDocs = getDocsFromUntrustedContent<{ name: string }>(responseContent);
546545
expect(untrustedDocs).toHaveLength(1);
547-
expect(untrustedDocs[0]!!.name).toBe("mongodb");
546+
expect(untrustedDocs[0]?.name).toBe("mongodb");
548547
}
549548
);
550549

@@ -605,7 +604,7 @@ describeWithMongoDB(
605604
expect(responseContent).toContain("The aggregation resulted in 1 documents. Returning 1 documents.");
606605
const untrustedDocs = getDocsFromUntrustedContent<{ name: string }>(responseContent);
607606
expect(untrustedDocs).toHaveLength(1);
608-
expect(untrustedDocs[0]!!.name).toBe("mongodb");
607+
expect(untrustedDocs[0]?.name).toBe("mongodb");
609608
}
610609
);
611610

@@ -666,7 +665,7 @@ describeWithMongoDB(
666665
expect(responseContent).toContain("The aggregation resulted in 1 documents. Returning 1 documents.");
667666
const untrustedDocs = getDocsFromUntrustedContent<{ name: string }>(responseContent);
668667
expect(untrustedDocs).toHaveLength(1);
669-
expect(untrustedDocs[0]!!.name).toBe("mongodb");
668+
expect(untrustedDocs[0]?.name).toBe("mongodb");
670669
}
671670
);
672671
},

0 commit comments

Comments
 (0)