Skip to content

Commit

Permalink
style(json-crdt-extensions): 💄 run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jun 7, 2024
1 parent edf19ac commit 71e74e0
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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');
});
Expand Down

0 comments on commit 71e74e0

Please sign in to comment.