From 743ca7a9b10aca9c9ce4e20cc3246558f1eb706e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 7 Jan 2014 23:04:12 +0000 Subject: Rename mammoth.style to mammoth.styleMapping --- tests/options-reader.tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/options-reader.tests.js') diff --git a/tests/options-reader.tests.js b/tests/options-reader.tests.js index 8160061..fcfa1bf 100644 --- a/tests/options-reader.tests.js +++ b/tests/options-reader.tests.js @@ -1,6 +1,6 @@ var assert = require("assert"); -var style = require("../").style; +var styleMapping = require("../").styleMapping; var optionsReader = require("../lib/options-reader"); var standardOptions = optionsReader._standardOptions; var readOptions = optionsReader.readOptions; @@ -19,7 +19,7 @@ describe('readOptions', function() { var options = readOptions({ styleMap: "p.SectionTitle => h2" }); - assert.deepEqual(style("p.SectionTitle => h2"), options.styleMap[0]); + assert.deepEqual(styleMapping("p.SectionTitle => h2"), options.styleMap[0]); assert.deepEqual(standardOptions.styleMap, options.styleMap.slice(1)); }); @@ -28,7 +28,7 @@ describe('readOptions', function() { styleMap: "p.SectionTitle => h2", includeDefaultStyleMap: false }); - assert.deepEqual([style("p.SectionTitle => h2")], options.styleMap); + assert.deepEqual([styleMapping("p.SectionTitle => h2")], options.styleMap); }); }); -- cgit v1.2.3