(Model, value)
| 2286 | } |
| 2287 | |
| 2288 | async function castMatrix(Model, value) { |
| 2289 | const doc = new Model({ matrix: value }); |
| 2290 | await doc.validate(); |
| 2291 | return doc.toObject().matrix; |
| 2292 | } |
| 2293 | |
| 2294 | it('applies only to the array it is set on', async function() { |
| 2295 | // Outer array only: the inner array still wraps |
no test coverage detected