From b79eaad70e41ea4843beced7c5e575d105362e10 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 25 Jan 2015 15:30:30 +0000 Subject: Test that empty HTML paths can be read --- tests/style-reader.tests.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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"])); }); -- cgit v1.2.3