@livestore/common 0.0.0-snapshot-6dbc1166742e2a32690fda95f10c11ad8aa45bab → 0.0.0-snapshot-082fb357020434a5731890e260d6f3b21f38fb47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,11 +5,6 @@ import { tables } from '../../../__tests__/fixture.js'
5
5
  import type * as LiveStoreEvent from '../../LiveStoreEvent.js'
6
6
  import { clientDocument, ClientDocumentTableDefSymbol } from './client-document-def.js'
7
7
 
8
- const materializerContext = {
9
- currentFacts: new Map(),
10
- clientOnly: false,
11
- }
12
-
13
8
  describe('client document table', () => {
14
9
  test('set event', () => {
15
10
  expect(patchId(tables.UiState.set({ showSidebar: false }, 'session-1'))).toMatchInlineSnapshot(`
@@ -51,7 +46,11 @@ describe('client document table', () => {
51
46
 
52
47
  const materializer = Doc[ClientDocumentTableDefSymbol].derived.setMaterializer
53
48
 
54
- return materializer(Doc.set(value, id as any).args, materializerContext)
49
+ return materializer(Doc.set(value, id as any).args, {
50
+ currentFacts: new Map(),
51
+ query: {} as any, // unused
52
+ eventDef: Doc[ClientDocumentTableDefSymbol].derived.setEventDef,
53
+ })
55
54
  }
56
55
 
57
56
  test('string value', () => {