mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
tests(showdown.getDefaultOptions()): add tests for showdow.getDefaultOptions()
This commit is contained in:
parent
5140a0cae5
commit
c17842f7b6
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue
Block a user