From 208318fd35c1f3107dc189e0c17330924fd74600 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 25 Jan 2015 15:37:14 +0000 Subject: Allow HTML paths with no elements --- tests/style-reader.tests.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/style-reader.tests.js') diff --git a/tests/style-reader.tests.js b/tests/style-reader.tests.js index df32839..7927153 100644 --- a/tests/style-reader.tests.js +++ b/tests/style-reader.tests.js @@ -105,4 +105,14 @@ describe("styleReader.read", function() { } ); }); + + test("reads style mapping with no HTML path", function() { + assert.deepEqual( + readStyle("r =>"), + { + from: documentMatchers.run(), + to: htmlPaths.empty + } + ); + }); }); -- cgit v1.2.3