Skip to content

Commit 3bb1d86

Browse files
committed
fixup! feat: Support updates with readonly array values
1 parent 4e67b0a commit 3bb1d86

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Diff for: src/__tests__/model.test.ts

+29
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,35 @@ describe('model', () => {
292292
});
293293
});
294294

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+
insertOne: {
311+
document: {
312+
bar: 123,
313+
foo: 'foo',
314+
},
315+
},
316+
},
317+
],
318+
{
319+
ignoreUndefined: true,
320+
}
321+
);
322+
});
323+
295324
test('simple schema with readonly operations', async () => {
296325
const operations = [
297326
{

0 commit comments

Comments
 (0)