Add character style tests

This commit is contained in:
Dolan
2019-10-10 21:03:38 +01:00
parent bf4885c7cf
commit 1d5e806ff4
2 changed files with 217 additions and 2 deletions

View File

@ -1,12 +1,12 @@
// Multiple sections and headers
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
import { Document, Footer, Header, Packer, PageBreak, PageNumberFormat, PageOrientation, Paragraph, TextRun } from "../build";
import { Document, Footer, Header, Packer, PageNumberFormat, PageOrientation, Paragraph, TextRun } from "../build";
const doc = new Document();
doc.addSection({
children: [new Paragraph("Hello World"), new PageBreak()],
children: [new Paragraph("Hello World")],
});
doc.addSection({