()
| 2950 | } |
| 2951 | |
| 2952 | function createTestContext() { |
| 2953 | const userSchema = new Schema({ |
| 2954 | name: String, |
| 2955 | ssn: { type: String, immutable: true } |
| 2956 | }, { timestamps: true }); |
| 2957 | const User = db.model('User', userSchema); |
| 2958 | return { User }; |
| 2959 | } |
| 2960 | }); |
| 2961 | |
| 2962 | it('updates buffers with `runValidators` successfully (gh-8580)', async function() { |
no outgoing calls
no test coverage detected