Function
assertFencedCode
(
markdown: string,
expectedExamples: ReadonlyArray<string>,
expectedWarnings: ReadonlyArray<string>
)
Source from the content-addressed store, hash-verified
| 4 | import * as Effect from "effect/Effect" |
| 5 | |
| 6 | const assertFencedCode = ( |
| 7 | markdown: string, |
| 8 | expectedExamples: ReadonlyArray<string>, |
| 9 | expectedWarnings: ReadonlyArray<string> |
| 10 | ) => { |
| 11 | assert.deepStrictEqual(Core.extractFencedCode(markdown), [expectedExamples, expectedWarnings]) |
| 12 | } |
| 13 | |
| 14 | describe("Core", () => { |
| 15 | describe("[internal] extractFencedCode", () => { |
Tested by
no test coverage detected