Skip to content

Commit

Permalink
style(json-crdt-extensions): 💄 fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Apr 20, 2024
1 parent db7f10e commit 7c270aa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/json-crdt-extensions/peritext/slice/PersistedSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class PersistedSlice<T = string> extends Range<T> implements MutableSlice

public update(params: SliceUpdateParams<T>): void {
let updateHeader = false;
let {start, end} = this;
const {start, end} = this;
const changes: [number, unknown][] = [];
if (params.behavior !== undefined) {
this.behavior = params.behavior;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,3 @@ describe('.del() and .isDel()', () => {
expect(slice3).toBe(undefined);
});
});

Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('.delSlices()', () => {
});

describe('.refresh()', () => {
const testSliceUpdate = (name: string, update: (controls: {range: Range, slice: PersistedSlice}) => void) => {
const testSliceUpdate = (name: string, update: (controls: {range: Range; slice: PersistedSlice}) => void) => {
test('changes hash on: ' + name, () => {
const {peritext, encodeAndDecode} = setup();
const range = peritext.rangeAt(6, 5);
Expand Down

0 comments on commit 7c270aa

Please sign in to comment.