MCPcopy Create free account
hub / github.com/Effect-TS/effect / assertFencedCode

Function assertFencedCode

packages/tools/docgen/test/Core.test.ts:6–12  ·  view source on GitHub ↗
(
  markdown: string,
  expectedExamples: ReadonlyArray<string>,
  expectedWarnings: ReadonlyArray<string>
)

Source from the content-addressed store, hash-verified

4import * as Effect from "effect/Effect"
5
6const assertFencedCode = (
7 markdown: string,
8 expectedExamples: ReadonlyArray<string>,
9 expectedWarnings: ReadonlyArray<string>
10) => {
11 assert.deepStrictEqual(Core.extractFencedCode(markdown), [expectedExamples, expectedWarnings])
12}
13
14describe("Core", () => {
15 describe("[internal] extractFencedCode", () => {

Callers 1

Core.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected