mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-20 20:00:33 +03:00
* fix: TagNode.create with null content by default * Create five-meals-sing.md * fix: tests * fix(preset): types inference * fix: preset types * fix: preset types * fix: lock file, parser and utils * refactor: move types to separate package * fix(preset): add @bbob/core to dev deps * fix(preset): lock file * test(preset-vue): create tags * test(preset-vue): tests * chore(nx): fix nx cover deps * chore: changesets
This commit is contained in:
@@ -44,6 +44,18 @@ describe('@bbob/plugin-helper/TagNode', () => {
|
||||
expect(newTagNode.content).toEqual(tagNode.content);
|
||||
});
|
||||
|
||||
test('null content', () => {
|
||||
const tagNode = TagNode.create('img');
|
||||
|
||||
expect(String(tagNode)).toBe('[img]');
|
||||
});
|
||||
|
||||
test('array content', () => {
|
||||
const tagNode = TagNode.create('img', {}, []);
|
||||
|
||||
expect(String(tagNode)).toBe('[img]');
|
||||
});
|
||||
|
||||
describe('toString', () => {
|
||||
test('tag with content and params', () => {
|
||||
const tagNode = TagNode.create('test', {test: 1}, ['Hello']);
|
||||
|
||||
Reference in New Issue
Block a user