aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/style-reader.tests.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/style-reader.tests.js b/tests/style-reader.tests.js
index d406f48..134eefe 100644
--- a/tests/style-reader.tests.js
+++ b/tests/style-reader.tests.js
@@ -53,6 +53,13 @@ describe("styleReader.readDocumentMatcher", function() {
);
});
+ test("reads p:ordered-list(1) as ordered list with index of 0", function() {
+ assert.deepEqual(
+ readDocumentMatcher("p:ordered-list(1)"),
+ documentMatchers.paragraph().orderedList(0)
+ );
+ });
+
test("reads plain run", function() {
assert.deepEqual(
readDocumentMatcher("r"),