Update MongoDB driver
This commit is contained in:
1 parent
cc885e7d04
commit
f4692faed6
12 files changed
+132
-156
No files matched your search
@@ -49,8 +49,16 @@ ava("convertOldPrecondition", (t) => {
|
||||
];
|
||||
|
||||
t.plan(tests.length + 2 * shouldFailTests.length);
|
||||
for (const test of tests)
|
||||
t.is(stringify(mongodbFunctions.convertOldPrecondition(test[0])), test[1]);
|
||||
for (const test of tests) {
|
||||
t.is(
|
||||
stringify(
|
||||
mongodbFunctions.convertOldPrecondition(
|
||||
test[0] as Record<string, unknown>
|
||||
)
|
||||
),
|
||||
test[1]
|
||||
);
|
||||
}
|
||||
|
||||
for (const test of shouldFailTests) {
|
||||
const func = (): void => {
|
||||
|
||||
Reference in new issue
Block a user