We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e67b0a commit 3bb1d86Copy full SHA for 3bb1d86
src/__tests__/model.test.ts
@@ -292,6 +292,35 @@ describe('model', () => {
292
});
293
294
295
+ test('simple schema with inline operations', async () => {
296
+ await simpleModel.bulkWrite([
297
+ {
298
+ insertOne: {
299
+ document: {
300
+ bar: 123,
301
+ foo: 'foo',
302
+ },
303
304
305
+ ]);
306
+
307
+ expect(collection.bulkWrite).toHaveBeenCalledWith(
308
+ [
309
310
311
312
313
314
315
316
317
+ ],
318
319
+ ignoreUndefined: true,
320
+ }
321
+ );
322
+ });
323
324
test('simple schema with readonly operations', async () => {
325
const operations = [
326
{
0 commit comments