We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a19070e commit 4f8cd2dCopy full SHA for 4f8cd2d
packages/utils/src/lib/wal.unit.test.ts
@@ -165,11 +165,16 @@ describe('WriteAheadLogFile', () => {
165
w.open();
166
w.append({ id: 1, name: 'test' });
167
w.close();
168
- expect(w.recover()).toStrictEqual({ id: 1, name: 'test' });
+ expect(w.recover().records).toStrictEqual([{ id: 1, name: 'test' }]);
169
+ w.open();
170
expect(() =>
171
w.append('{ id: 1, name:...' as unknown as object),
172
).not.toThrow();
- w.expect(w.recover()).toStrictEqual({ id: 1, name: 'test' });
173
+ w.close();
174
+ expect(w.recover().records).toStrictEqual([
175
+ { id: 1, name: 'test' },
176
+ '{ id: 1, name:...',
177
+ ]);
178
});
179
180
it('should create instance with file path and codecs without opening', () => {
0 commit comments