Skip to content

Commit f8cb14c

Browse files
committed
feat: adds frag snippet
1 parent 9ca3603 commit f8cb14c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/snippets/html.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,6 @@
157157

158158
"c": "{<!-- ${0} -->}",
159159
"cc:ie": "{<!--[if IE]>${0}<![endif]-->}",
160-
"cc:noie": "{<!--[if !IE]><!-->${0}<!--<![endif]-->}"
160+
"cc:noie": "{<!--[if !IE]><!-->${0}<!--<![endif]-->}",
161+
"frag": "{<>${0}</>}"
161162
}

test/fragment.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import {describe} from 'node:test';
2+
import {strictEqual as equal} from 'node:assert';
3+
import expand from '../src';
4+
5+
describe('frag', () => {
6+
equal(expand('frag'), '<></>');
7+
});

0 commit comments

Comments
 (0)