diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:32:52 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:32:52 +0000 |
| commit | 4510e66c6426c88868f74a948123eb48a302d487 (patch) | |
| tree | 48bbc31862b581e594351e7acb0793dafc42e506 /tests/options-reader.tests.js | |
| parent | bfc33eec2b0a22e4bb0ee2412ec22df636134330 (diff) | |
Allow default style map to be disabled
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) { |
