Skip to content

Commit df9927a

Browse files
chore: update accuracy tests
1 parent 293cfe2 commit df9927a

File tree

1 file changed

+45
-16
lines changed

1 file changed

+45
-16
lines changed

tests/accuracy/export.test.ts

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ describeAccuracyTests([
1010
parameters: {
1111
database: "mflix",
1212
collection: "movies",
13-
filter: Matcher.emptyObjectOrUndefined,
14-
limit: Matcher.undefined,
13+
exportTitle: Matcher.string(),
14+
exportTarget: [
15+
{
16+
name: "find",
17+
arguments: {},
18+
},
19+
],
1520
},
1621
},
1722
],
@@ -24,9 +29,17 @@ describeAccuracyTests([
2429
parameters: {
2530
database: "mflix",
2631
collection: "movies",
27-
filter: {
28-
runtime: { $lt: 100 },
29-
},
32+
exportTitle: Matcher.string(),
33+
exportTarget: [
34+
{
35+
name: "find",
36+
arguments: {
37+
filter: {
38+
runtime: { $lt: 100 },
39+
},
40+
},
41+
},
42+
],
3043
},
3144
},
3245
],
@@ -39,14 +52,22 @@ describeAccuracyTests([
3952
parameters: {
4053
database: "mflix",
4154
collection: "movies",
42-
projection: {
43-
title: 1,
44-
_id: Matcher.anyOf(
45-
Matcher.undefined,
46-
Matcher.number((value) => value === 0)
47-
),
48-
},
49-
filter: Matcher.emptyObjectOrUndefined,
55+
exportTitle: Matcher.string(),
56+
exportTarget: [
57+
{
58+
name: "find",
59+
arguments: {
60+
projection: {
61+
title: 1,
62+
_id: Matcher.anyOf(
63+
Matcher.undefined,
64+
Matcher.number((value) => value === 0)
65+
),
66+
},
67+
filter: Matcher.emptyObjectOrUndefined,
68+
},
69+
},
70+
],
5071
},
5172
},
5273
],
@@ -59,9 +80,17 @@ describeAccuracyTests([
5980
parameters: {
6081
database: "mflix",
6182
collection: "movies",
62-
filter: { genres: "Horror" },
63-
sort: { runtime: 1 },
64-
limit: 2,
83+
exportTitle: Matcher.string(),
84+
exportTarget: [
85+
{
86+
name: "find",
87+
arguments: {
88+
filter: { genres: "Horror" },
89+
sort: { runtime: 1 },
90+
limit: 2,
91+
},
92+
},
93+
],
6594
},
6695
},
6796
],

0 commit comments

Comments
 (0)