aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-01-25 15:30:30 +0000
committerMichael Williamson <mike@zwobble.org>2015-01-25 15:30:30 +0000
commitb79eaad70e41ea4843beced7c5e575d105362e10 (patch)
tree8559d3e914158027bf2fb0289c1b926d2c93dfc5 /tests
parent97365b6993456f4de0198da23e517385e119e5ba (diff)
Test that empty HTML paths can be read
Diffstat (limited to 'tests')
-rw-r--r--tests/style-reader.tests.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/style-reader.tests.js b/tests/style-reader.tests.js
index 28df434..df32839 100644
--- a/tests/style-reader.tests.js
+++ b/tests/style-reader.tests.js
@@ -11,6 +11,10 @@ var readStyle = styleReader.readStyle;
describe('styleReader.readHtmlPath', function() {
+ test('reads empty path', function() {
+ assert.deepEqual(readHtmlPath(""), htmlPaths.empty);
+ });
+
test('reads single element', function() {
assert.deepEqual(readHtmlPath("p"), htmlPaths.elements(["p"]));
});