(content1: Content, content2?: Content)
| 131 | let synchronizer2: Synchronizer; |
| 132 | |
| 133 | const expectEachToHaveContent = (content1: Content, content2?: Content) => { |
| 134 | expect(store1.getContent()).toEqual(content1); |
| 135 | expect(store2.getContent()).toEqual(content2 ?? content1); |
| 136 | expect(store1.getMergeableContent()).toMatchSnapshot(); |
| 137 | if (content2) { |
| 138 | expect(store2.getMergeableContent()).toMatchSnapshot(); |
| 139 | } else { |
| 140 | expect(store2.getMergeableContent()).toEqual( |
| 141 | store1.getMergeableContent(), |
| 142 | ); |
| 143 | } |
| 144 | expect([ |
| 145 | synchronizer1.getSynchronizerStats(), |
| 146 | synchronizer2.getSynchronizerStats(), |
| 147 | ]).toMatchSnapshot('stats'); |
| 148 | }; |
| 149 | |
| 150 | beforeEach(() => { |
| 151 | environment = synchronizable.createEnvironment?.(); |
no test coverage detected
searching dependent graphs…