aboutsummaryrefslogtreecommitdiff
path: root/tests/style-reader.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-05-03 21:50:57 +0100
committerMichael Williamson <mike@zwobble.org>2013-05-03 21:50:57 +0100
commit2558a4cc0df494f7b9380e9b34b85c5dd1c83010 (patch)
tree4b0a5877f5fd0dc93fecb7896145fe123082c8db /tests/style-reader.tests.js
parent6d2453fd95214ca3269c3d9f7f1e2a00d3f3ceee (diff)
Add parsing of paragraph matcher with style name
Diffstat (limited to 'tests/style-reader.tests.js')
-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 23d4f88..d96ba87 100644
--- a/tests/style-reader.tests.js
+++ b/tests/style-reader.tests.js
@@ -44,4 +44,11 @@ describe("styleReader.readDocumentMatcher", function() {
test("reads plain paragraph", function() {
assert.deepEqual(readDocumentMatcher("p"), documentMatchers.paragraph());
});
+
+ test("reads paragraph with style name", function() {
+ assert.deepEqual(
+ readDocumentMatcher("p.Heading1"),
+ documentMatchers.paragraph("Heading1")
+ );
+ });
});