From 71e74e06665e4cf74fc96b7a65ebf4f5dea0002f Mon Sep 17 00:00:00 2001 From: streamich Date: Fri, 7 Jun 2024 23:32:23 +0200 Subject: [PATCH] =?UTF-8?q?style(json-crdt-extensions):=20=F0=9F=92=84=20r?= =?UTF-8?q?un=20Prettier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../peritext/block/__tests__/Block.iteration.spec.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/json-crdt-extensions/peritext/block/__tests__/Block.iteration.spec.ts b/src/json-crdt-extensions/peritext/block/__tests__/Block.iteration.spec.ts index 4957fb63c5..136e1b0f6f 100644 --- a/src/json-crdt-extensions/peritext/block/__tests__/Block.iteration.spec.ts +++ b/src/json-crdt-extensions/peritext/block/__tests__/Block.iteration.spec.ts @@ -103,7 +103,7 @@ describe('tuples', () => { expect(pairs.length).toBe(1); expect(pairs[0]).toEqual([peritext.overlay.START, peritext.overlay.END]); }); - + test('can iterate through all text chunks in two-block documents', () => { const {peritext} = setupTwoBlockDocument(); expect(peritext.blocks.root.children.length).toBe(2); @@ -112,12 +112,8 @@ describe('tuples', () => { const tuples1 = [...block1.tuples()]; const tuples2 = [...block2.tuples()]; expect(tuples1.length).toBe(3); - const text1 = tuples1 - .map(([p1, p2]) => Inline.create(peritext, p1, p2).text()) - .join(''); - const text2 = tuples2 - .map(([p1, p2]) => Inline.create(peritext, p1, p2).text()) - .join(''); + const text1 = tuples1.map(([p1, p2]) => Inline.create(peritext, p1, p2).text()).join(''); + const text2 = tuples2.map(([p1, p2]) => Inline.create(peritext, p1, p2).text()).join(''); expect(text1).toBe('hello '); expect(text2).toBe('\nworld'); });