aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-11-04 11:06:59 +0000
committerMichael Williamson <mike@zwobble.org>2017-11-04 11:06:59 +0000
commit1ae8ec5852c9ad94f1773d0014da2bb18887ce9e (patch)
treebe6a8045ed7ab6e40d54d7d7fcf4695e711ce30c /test
parenteae1dd0b509fbe201ba5f7ed530fd1bf8329904a (diff)
Parse style mappings for tables
Diffstat (limited to 'test')
-rw-r--r--test/style-reader.tests.js24
1 files changed, 23 insertions, 1 deletions
diff --git a/test/style-reader.tests.js b/test/style-reader.tests.js
index 20d4127..dc8cb3f 100644
--- a/test/style-reader.tests.js
+++ b/test/style-reader.tests.js
@@ -165,7 +165,29 @@ test("styleReader.readDocumentMatcher", {
documentMatchers.smallCaps
);
},
-
+
+ "reads plain table": function() {
+ assertDocumentMatcher("table", documentMatchers.table());
+ },
+
+ "reads table with style ID": function() {
+ assertDocumentMatcher(
+ "table.TableNormal",
+ documentMatchers.table({
+ styleId: "TableNormal"
+ })
+ );
+ },
+
+ "reads table with style name": function() {
+ assertDocumentMatcher(
+ "table[style-name='Normal Table']",
+ documentMatchers.table({
+ styleName: documentMatchers.equalTo("Normal Table")
+ })
+ );
+ },
+
"reads comment-reference": function() {
assertDocumentMatcher(
"comment-reference",