Skip to main content
Module

x/docxml/src/utilities/tests.ts>expectDocxToContain

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
function expectDocxToContain
import { expectDocxToContain } from "https://deno.land/x/docxml@2.0.1/src/utilities/tests.ts";

Convenient but unoptimized function to run an XPath test against the DOM of a file in the DOCX archive that has a specific relationship (such as being the "main document" or the "settings").

May optimize for speed later

Parameters

bundle: Docx
relationshipType: RelationshipType
test: string