Sfoglia il codice sorgente

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

Estevão Soares dos Santos 10 anni fa
parent
commit
c17842f7b6
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. 11 0
      test/node/showdown.js

+ 11 - 0
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 () {