Skip to content

Commit 7a7ddd4

Browse files
committed
Isolate document updating logic
1 parent 8fe3252 commit 7a7ddd4

File tree

5 files changed

+672
-634
lines changed

5 files changed

+672
-634
lines changed

apps/meteor/client/lib/cachedCollections/LocalCollection.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ describe('saveOriginals/retrieveOriginals', () => {
246246
describe('internal error/edge cases', () => {
247247
it('throws on invalid modifier', () => {
248248
collection.insert({ ...docA });
249-
expect(() => collection.update({ _id: 'a' }, { $bad: { foo: 1 } })).toThrow();
249+
expect(() => collection.update({ _id: 'a' }, { $bad: { foo: 1 } } as any)).toThrow();
250250
});
251251

252252
it('throws on forbidden field names', () => {

0 commit comments

Comments
 (0)