Skip to content

Commit

Permalink
new subsection tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haberdashPI committed Sep 19, 2024
1 parent 5eb4026 commit 953692b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/specs/moveBySection.ux.mts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ describe('Section Motion', () => {
`
);

await editor.moveCursor(10, 1);
await parMoveSelects(
{selectWhole: true, boundary: 'start'},
`# B
# --------------------
billybob
bim
`
);
});

it('Can move by end', async () => {
Expand All @@ -117,6 +129,19 @@ describe('Section Motion', () => {
# B
# --------------------`
);

await editor.moveCursor(9, 1);

await parMoveSelects(
{selectWhole: true, boundary: 'end'},
`
joebob
bizzle
# B
# --------------------`
);
});

it('Can move backwards by start', async () => {
Expand Down

0 comments on commit 953692b

Please sign in to comment.