From 4510e66c6426c88868f74a948123eb48a302d487 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 7 Jan 2014 22:32:52 +0000 Subject: Allow default style map to be disabled --- tests/options-reader.tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/options-reader.tests.js') 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) { -- cgit v1.2.3