diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-05-03 21:50:57 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-05-03 21:50:57 +0100 |
| commit | 2558a4cc0df494f7b9380e9b34b85c5dd1c83010 (patch) | |
| tree | 4b0a5877f5fd0dc93fecb7896145fe123082c8db /tests | |
| parent | 6d2453fd95214ca3269c3d9f7f1e2a00d3f3ceee (diff) | |
Add parsing of paragraph matcher with style name
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/style-reader.tests.js | 7 |
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") + ); + }); }); |
