aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-09-16 12:23:43 +0100
committerMichael Williamson <mike@zwobble.org>2016-09-16 12:24:23 +0100
commitd16d3a010c5386775f189b0309268ba1e45810fb (patch)
tree856fdef758ba5e963c3fa5470a25e2c9d4eb760d /test
parent206843c9f701a3e62ba7c45b07173471b6309870 (diff)
Ignore blank lines in style map
Diffstat (limited to 'test')
-rw-r--r--test/options-reader.tests.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/options-reader.tests.js b/test/options-reader.tests.js
index 06e0764..b0f202b 100644
--- a/test/options-reader.tests.js
+++ b/test/options-reader.tests.js
@@ -38,6 +38,13 @@ test('lines starting with # in custom style map are ignored', function() {
assert.deepEqual(standardOptions.styleMap, options.styleMap.slice(1));
});
+test('blank lines in custom style map are ignored', function() {
+ var options = readOptions({
+ styleMap: "\n\n"
+ });
+ assert.deepEqual(standardOptions.styleMap, options.styleMap);
+});
+
test('default style mappings are ignored if includeDefaultStyleMap is false', function() {
var options = readOptions({
styleMap: "p.SectionTitle => h2",