Skip to content

Commit b5eaf6c

Browse files
committed
formatting
1 parent 5892ff2 commit b5eaf6c

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

packages/wasm/test/test-failurePos.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ const validInput = `{% comment %}
6363
// rightmostFailurePosition is the same as the JS parser reports.
6464
function arbitraryEdit(input) {
6565
return fc
66-
.tuple(
67-
fc.nat({max: input.length - 1}), // Position to edit
68-
fc.integer({min: 1, max: 20}) // Number of characters to delete
69-
)
70-
.map(([pos, numDeleted]) => {
71-
return input.slice(0, pos) + input.slice(pos + numDeleted);
72-
});
66+
.tuple(
67+
fc.nat({max: input.length - 1}), // Position to edit
68+
fc.integer({min: 1, max: 20}), // Number of characters to delete
69+
)
70+
.map(([pos, numDeleted]) => {
71+
return input.slice(0, pos) + input.slice(pos + numDeleted);
72+
});
7373
}
7474

7575
// A fast-check property that checks that:
@@ -81,8 +81,8 @@ const sameFailurePos = (t, wasmMatcher) =>
8181
wasmMatcher.setInput(input);
8282
fc.pre(wasmMatcher.match() === 0);
8383
assert.equal(
84-
ns.LiquidHTML.match(input).getRightmostFailurePosition(),
85-
wasmMatcher.getRightmostFailurePosition()
84+
ns.LiquidHTML.match(input).getRightmostFailurePosition(),
85+
wasmMatcher.getRightmostFailurePosition(),
8686
);
8787
});
8888

0 commit comments

Comments
 (0)