Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JiLiZART committed Apr 25, 2024
1 parent ce2dd93 commit 9e53c5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .changeset/five-meals-sing.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
// old behavior
TagNode.create('img', {}, []).toString() // -> [img][/img]
```

Migrate all calls of `TagNode.create('test-tag')` to `TagNode.create('test-tag', {}, [])
2 changes: 1 addition & 1 deletion packages/bbob-core/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('@bbob/core', () => {

const plugin: BBobPluginFunction = (tree) => tree.walk(node => {
if (node === ':)') {
return TagNode.create('test-tag')
return TagNode.create('test-tag', {}, [])
}

return node
Expand Down
2 changes: 1 addition & 1 deletion packages/bbob-parser/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function parse(input: string, opts: ParseOptions = {}) {
function handleTagStart(token: Token) {
flushTagNodes();

const tagNode = TagNode.create(token.getValue());
const tagNode = TagNode.create(token.getValue(), {}, []);
const isNested = isTokenNested(token);

tagNodes.push(tagNode);
Expand Down

0 comments on commit 9e53c5d

Please sign in to comment.