MCPcopy Create free account
hub / github.com/Automattic/mongoose / createTestContext

Function createTestContext

test/model.updateOne.test.js:2952–2959  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected