2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-05 16:42:27 +03:00

fix: caseFreeTags types (#267)

* fix: try to fix types

* fix: changeset
This commit is contained in:
Nikolay Kost
2024-11-26 13:11:20 +03:00
committed by GitHub
parent 5b14eeace2
commit 8a9cfd67c0
2 changed files with 23 additions and 2 deletions
+6 -2
View File
@@ -10,8 +10,12 @@ import { render } from '@testing-library/react'
import BBCode from '../src';
const renderBBCode = (input, options) => render(
<BBCode plugins={[preset()]} options={options}>{input}</BBCode>
import type { BBobCoreOptions } from "@bbob/types";
const plugins = [preset()]
const renderBBCode = (input: string, options?: BBobCoreOptions) => render(
<BBCode plugins={plugins} options={options}>{input}</BBCode>
).container.innerHTML;
describe('@bbob/react', () => {