diff options
Diffstat (limited to 'tests/options-reader.tests.js')
| -rw-r--r-- | tests/options-reader.tests.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/options-reader.tests.js b/tests/options-reader.tests.js index 073b3a5..ea2728d 100644 --- a/tests/options-reader.tests.js +++ b/tests/options-reader.tests.js @@ -22,6 +22,14 @@ describe('readOptions', function() { assert.deepEqual(style("p.SectionTitle => h2"), options.styleMap[0]); assert.deepEqual(standardOptions.styleMap, options.styleMap.slice(1)); }); + + it('custom style mappings are ignored if includeDefaultStyleMap is false', function() { + var options = readOptions({ + styleMap: "p.SectionTitle => h2", + includeDefaultStyleMap: false + }); + assert.deepEqual([style("p.SectionTitle => h2")], options.styleMap); + }); }); function last(array) { |
