diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-11-30 11:20:20 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-11-30 11:20:20 +0000 |
| commit | 3751195339954f49f525446de0795d2acad2c234 (patch) | |
| tree | fb177eed0d2ad356f438cbfb35ff045760c87f0e /test/docx/document-matchers.js | |
| parent | f79db6f1dd40c5ff0325e2a5ea4d99485ce18bf4 (diff) | |
Read complex field checkboxes, always unchecked
Diffstat (limited to 'test/docx/document-matchers.js')
| -rw-r--r-- | test/docx/document-matchers.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/docx/document-matchers.js b/test/docx/document-matchers.js index 83c4486..11b5aa9 100644 --- a/test/docx/document-matchers.js +++ b/test/docx/document-matchers.js @@ -7,6 +7,7 @@ var documents = require("../../lib/documents"); exports.isEmptyRun = isRun({children: []}); exports.isRun = isRun; exports.isText = isText; +exports.isCheckbox = isCheckbox; exports.isHyperlink = isHyperlink; exports.isTable = isTable; exports.isRow = isRow; @@ -20,6 +21,10 @@ function isText(text) { return isDocumentElement(documents.types.text, {value: text}); } +function isCheckbox(properties) { + return isDocumentElement(documents.types.checkbox, properties); +} + function isHyperlink(properties) { return isDocumentElement(documents.types.hyperlink, properties); } |
