Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

TypeScript library for parsing and building a DOCXML file
Go to Latest
function expectDocxToContain
import { expectDocxToContain } from "https://deno.land/x/docxml@5.1.0/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