diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-14 20:52:26 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-14 20:52:26 +0000 |
| commit | acc7639ea2f58df6059ab00dc3c9620460a03083 (patch) | |
| tree | 54c08f220540deb4107c63b67b48160ebe9eb06a /test | |
| parent | 6554612c305bfd75116b00ed89d0f3b104b1a3ca (diff) | |
Read separators in HTML paths
Diffstat (limited to 'test')
| -rw-r--r-- | test/style-reader.tests.js | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |
