Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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