summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-11-04 11:12:54 +0000
committerMichael Williamson <mike@zwobble.org>2017-11-04 11:12:54 +0000
commit82fe0ddf5bcca4f74dc121247c3c69b5bdab9240 (patch)
treec9832657f725b46a48fc90fd3ecd739e1eb9e1cd
parentedb3cc2fb70ec37597ba153c4a9050b5cea36753 (diff)
Move style mapping for tables tests
-rw-r--r--test/style-reader.tests.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/test/style-reader.tests.js b/test/style-reader.tests.js
index dc8cb3f..7b37f25 100644
--- a/test/style-reader.tests.js
+++ b/test/style-reader.tests.js
@@ -130,6 +130,28 @@ test("styleReader.readDocumentMatcher", {
documentMatchers.run()
);
},
+
+ "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 bold": function() {
assertDocumentMatcher(
@@ -166,28 +188,6 @@ test("styleReader.readDocumentMatcher", {
);
},
- "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",