aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-05-03 21:42:37 +0100
committerMichael Williamson <mike@zwobble.org>2013-05-03 21:42:37 +0100
commit6d2453fd95214ca3269c3d9f7f1e2a00d3f3ceee (patch)
tree2cd9dc12f5080ebe21e1529582e38aa5c7c8800a /tests
parentdc4025cae3964d0300b421b1b7ff486d9f4c5faf (diff)
Parse paragraph matcher
Diffstat (limited to 'tests')
-rw-r--r--tests/style-reader.tests.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/style-reader.tests.js b/tests/style-reader.tests.js
index 102bbad..23d4f88 100644
--- a/tests/style-reader.tests.js
+++ b/tests/style-reader.tests.js
@@ -1,10 +1,12 @@
var assert = require("assert");
var htmlPaths = require("../lib/html-paths");
+var documentMatchers = require("../lib/document-matchers");
var styleReader = require("../lib/style-reader");
var test = require("./testing").test;
var readHtmlPath = styleReader.readHtmlPath;
+var readDocumentMatcher = styleReader.readDocumentMatcher;
describe('styleReader.readHtmlPath', function() {
@@ -36,4 +38,10 @@ describe('styleReader.readHtmlPath', function() {
])
assert.deepEqual(readHtmlPath("p:fresh"), expected);
});
-})
+});
+
+describe("styleReader.readDocumentMatcher", function() {
+ test("reads plain paragraph", function() {
+ assert.deepEqual(readDocumentMatcher("p"), documentMatchers.paragraph());
+ });
+});