Skip to content

Commit 5b7ab83

Browse files
committed
chore: added a test case
1 parent f7b0a4e commit 5b7ab83

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ All options are **optional** and have **default values**.
134134

135135
```typescript
136136
type RestrictedRecord = Record<string, unknown> & { className?: never };
137+
137138
type TagNameFunction = (type?: string, title?: string) => string;
138139
type ClassNameFunction = (type?: string, title?: string) => string[];
139140
type PropertyFunction = (type?: string, title?: string) => RestrictedRecord;

tests/without_options.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,19 @@ describe("no options - success", () => {
140140
);
141141
});
142142

143+
// ******************************************
144+
it("No type, no title, with content (no empty lines)", async () => {
145+
const input = dedent`
146+
:::
147+
**bold**
148+
:::
149+
`;
150+
151+
expect(await process(input)).toMatchInlineSnapshot(
152+
`"<div class="remark-container"><p><strong>bold</strong></p></div>"`,
153+
);
154+
});
155+
143156
// ******************************************
144157
it("Type is defined, no title, no content", async () => {
145158
const input = dedent`

0 commit comments

Comments
 (0)