From acc7639ea2f58df6059ab00dc3c9620460a03083 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 14 Nov 2016 20:52:26 +0000 Subject: Read separators in HTML paths --- test/style-reader.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/style-reader.tests.js b/test/style-reader.tests.js index 46c2ace..b4363f0 100644 --- a/test/style-reader.tests.js +++ b/test/style-reader.tests.js @@ -61,6 +61,13 @@ test('styleReader.readHtmlPath', { assertHtmlPath("p:fresh", expected); }, + 'reads separator for elements': function() { + var expected = htmlPaths.elements([ + htmlPaths.element("p", {}, {separator: "x"}) + ]); + assertHtmlPath("p:separator('x')", expected); + }, + 'reads ignore element': function() { assertHtmlPath("!", htmlPaths.ignore); } -- cgit v1.2.3