Skip to content

Commit

Permalink
Add multiLine test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Feb 13, 2024
1 parent ac2a22c commit 2ba59ce
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion cypress/e2e/keymaps.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,11 @@ describe('Keymaps', () => {
});
});

// Todo - remove "only" when "wrapComment" is implemented
describe('wrapComment', () => {
const modifierKey = isMac() ? 'cmd' : 'ctrl';

it.only('should wrap the selection in a comment', () => {
it.only('should wrap a single line selection in a block comment', () => {
selectToEndOfLine();

typeCode(`{${modifierKey}+/}`);
Expand All @@ -329,5 +330,17 @@ describe('Keymaps', () => {
<div>Third line</div>
`);
});

it.only('should wrap a multi line selection in a block comment', () => {
selectLines(3);

typeCode(`{${modifierKey}+/}`);

assertCodePaneContains(dedent`
{/* <div>First line</div>
<div>Second line</div>
<div>Third line</div> */}
`);
});
});
});

0 comments on commit 2ba59ce

Please sign in to comment.