zcap-spec-examples - v0.2.0
    Preparing search index...

    Module fixtures

    A snapshot of the zcap-spec, embedded as a string.

    GENERATED FILE -- do not edit by hand. Regenerate with:

    npm run fixture:update
    

    Exists so that tests and scratch scripts have a realistic document to work with, offline and without hitting the network:

    import { extractExamplesFromHtml } from "zcap-spec-examples";
    import { zcapSpecHtml } from "zcap-spec-examples/fixtures";

    const examples = extractExamplesFromHtml(zcapSpecHtml);

    It is a real ReSpec source document, so it exercises the things a hand-written fixture tends to miss: respecConfig.edDraftURI, <pre class="example ..."> blocks with no id attributes, HTML entities, and JSON-with-comments example bodies.

    ZcapSpecSnapshot
    zcapSpecHtml
    zcapSpecSnapshot