Skip to content

Commit 0d6cd38

Browse files
committed
style: 💄 run Prettier
1 parent 476f64f commit 0d6cd38

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

src/json-crdt-repo/remote/__tests__/DemoServerRemoteHistory.spec.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ describe('.update()', () => {
107107
const blob = patch.toBinary();
108108
const update = await remote.update(id, [{blob}]);
109109
expect(update).toMatchObject({
110-
patches: [{
111-
ts: expect.any(Number),
112-
}]
110+
patches: [
111+
{
112+
ts: expect.any(Number),
113+
},
114+
],
113115
});
114116
const read2 = await remote.read(id);
115117
const model2 = Model.fromBinary(read2.block.snapshot.blob);
@@ -135,10 +137,12 @@ describe('.scanFwd()', () => {
135137
await remote.update(id, [{blob: blob2}]);
136138
const scan1 = await remote.scanFwd(id, read1.block.snapshot.cur);
137139
expect(scan1).toMatchObject({
138-
patches: [{
139-
blob: expect.any(Uint8Array),
140-
ts: expect.any(Number),
141-
}]
140+
patches: [
141+
{
142+
blob: expect.any(Uint8Array),
143+
ts: expect.any(Number),
144+
},
145+
],
142146
});
143147
expect(scan1.patches[0].blob).toEqual(blob2);
144148
});
@@ -164,10 +168,12 @@ describe('.scanBwd()', () => {
164168
const scan1 = await remote.scanBwd(id, read2.block.snapshot.cur);
165169
expect(scan1.patches.length).toBe(1);
166170
expect(scan1).toMatchObject({
167-
patches: [{
168-
blob: expect.any(Uint8Array),
169-
ts: expect.any(Number),
170-
}]
171+
patches: [
172+
{
173+
blob: expect.any(Uint8Array),
174+
ts: expect.any(Number),
175+
},
176+
],
171177
});
172178
expect(scan1.patches[0].blob).toEqual(blob1);
173179
});

0 commit comments

Comments
 (0)