Skip to content

Commit

Permalink
feat: adds frag snippet
Browse files Browse the repository at this point in the history
Resolves to React.Fragment shorthand <></>
  • Loading branch information
Вавилихин Владислав Русланович committed Dec 15, 2024
1 parent 9ca3603 commit 21957c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/snippets/html.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,6 @@

"c": "{<!-- ${0} -->}",
"cc:ie": "{<!--[if IE]>${0}<![endif]-->}",
"cc:noie": "{<!--[if !IE]><!-->${0}<!--<![endif]-->}"
"cc:noie": "{<!--[if !IE]><!-->${0}<!--<![endif]-->}",
"frag": "{<>${0}</>}"
}
7 changes: 7 additions & 0 deletions test/fragment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {describe} from 'node:test';
import {strictEqual as equal} from 'node:assert';
import expand from '../src';

describe('frag', () => {
equal(expand('frag'), '<></>');
});

0 comments on commit 21957c0

Please sign in to comment.