Skip to content

Commit

Permalink
Fix tests for v4 without fields
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic authored Nov 12, 2024
1 parent 8938445 commit 64d7030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe("Document", () => {
expect(document).to.have.property("score");
expect(document).not.to.have.property("thumbnail");
});
expect(findStub.args[0][0]).to.be.eql({ fields:{ thumbnail: false } });
expect(findStub.args[0][0]).to.be.eql({ fields:{} });
done();
});
});
Expand Down Expand Up @@ -118,7 +118,7 @@ describe("Document", () => {
{ authors:"James Chadwick" }
]
},
fields: { thumbnail: false }
fields: {}
});
done();
});
Expand Down Expand Up @@ -421,7 +421,7 @@ describe("Document", () => {
expect(res.body).to.have.property("type");
expect(res.body).to.have.property("title");
expect(findByIdStub.args[0][1]).to.be.eql(
{ fields: { thumbnail: false } }
{ fields: {} }
);
done();
});
Expand Down

0 comments on commit 64d7030

Please sign in to comment.