tests(showdown.getDefaultOptions()): add tests for showdow.getDefaultOptions()

This commit is contained in:
Estevão Soares dos Santos 2015-06-15 14:56:30 +01:00
parent 5140a0cae5
commit c17842f7b6

View File

@ -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 () {