Skip to content

Commit c1ce3c9

Browse files
committedJul 16, 2021
test(model): repro #9673
1 parent ad8ca76 commit c1ce3c9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎test/model.test.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -7323,7 +7323,8 @@ describe('Model', function() {
73237323

73247324
yield User.insertMany([
73257325
new User({ name: 'Hafez1_gh-9673-2' }),
7326-
new User({ name: 'Hafez2_gh-9673-2' })
7326+
new User({ name: 'Hafez2_gh-9673-2' }),
7327+
new User({ name: 'Hafez3_gh-9673-2' })
73277328
]);
73287329

73297330
const users = yield User.find().sort('name');
@@ -7339,7 +7340,8 @@ describe('Model', function() {
73397340
usersAfterUpdate.map(user => user.name),
73407341
[
73417342
'Hafez1_gh-9673-2-updated',
7342-
'Hafez2_gh-9673-2-updated'
7343+
'Hafez2_gh-9673-2-updated',
7344+
'Hafez3_gh-9673-2'
73437345
]
73447346
);
73457347
});
@@ -7412,7 +7414,7 @@ describe('Model', function() {
74127414
assert.equal(user2.isNew, false);
74137415
});
74147416
});
7415-
it('sets `isNew` to false when a document succeds and `isNew` does not change when some fail', () => {
7417+
it('sets `isNew` to false when a document succeeds and `isNew` does not change when some fail', () => {
74167418
return co(function* () {
74177419
const userSchema = new Schema({
74187420
name: { type: String, unique: true }

0 commit comments

Comments
 (0)
Please sign in to comment.