From c17842f7b64e044f827d3cf849e82db0253c5bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Soares=20dos=20Santos?= Date: Mon, 15 Jun 2015 14:56:30 +0100 Subject: [PATCH] tests(showdown.getDefaultOptions()): add tests for `showdow.getDefaultOptions()` --- test/node/showdown.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/node/showdown.js b/test/node/showdown.js index b737275..abaebaa 100644 --- a/test/node/showdown.js +++ b/test/node/showdown.js @@ -14,6 +14,17 @@ describe('showdown.options', function () { expect(showdown.getOption('foo')).to.be.undefined(); }); }); + + describe('getDefaultOptions()', function () { + it('should get default options', function () { + var opts = { + omitExtraWLInCodeBlocks: false, + prefixHeaderId: false, + noHeaderId: false + }; + expect(showdown.getDefaultOptions()).to.be.eql(opts); + }); + }); }); describe('showdown.extension()', function () {