Skip to content

Commit 0a6826e

Browse files
committed
cleanup
1 parent de56a9f commit 0a6826e

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

test/index.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,14 +2076,19 @@ describe("aggregate methods: { overrideMethods: ['aggregate'] }", function () {
20762076
}
20772077
});
20782078

2079-
// it("findWithDeleted() -> should return 3 documents", async function () {
2080-
// try {
2081-
// const documents = await TestModel.findWithDeleted();
2082-
// documents.length.should.equal(3);
2083-
// } catch (err) {
2084-
// should.not.exist(err);
2085-
// }
2086-
// });
2079+
it("aggregateWithDeleted([{$project : {name : 1} }]) -> should return deleted documents", async function () {
2080+
try {
2081+
const documents = await TestModel.aggregateWithDeleted([
2082+
{
2083+
$project : { name : 1 }
2084+
}
2085+
]);
2086+
2087+
documents.length.should.equal(3);
2088+
} catch (err) {
2089+
should.not.exist(err);
2090+
}
2091+
});
20872092

20882093
it("aggregateWithDeleted([{$project : {name : 1} }]) -> should return deleted documents (pipeline)", async function () {
20892094
try {

0 commit comments

Comments
 (0)