Skip to content

Commit

Permalink
Update test/model.discriminator.test.js
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <hasezoey@gmail.com>
  • Loading branch information
vkarpov15 and hasezoey authored Dec 16, 2024
1 parent b242feb commit 398b83c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/model.discriminator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2292,11 +2292,10 @@ describe('model', function() {
Request.discriminator('Request:email', EmailRequestSchema, 'email');
Request.discriminator('Request:form', FormRequestSchema, 'form');

const request = new Request({
const request = await Request.create({
status: 'new',
source: 'form'
});
await request.save();

let requestAsReadFromDb = await Request.findById(request._id);

Expand Down

0 comments on commit 398b83c

Please sign in to comment.