We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d55fc10 commit 630aaa6Copy full SHA for 630aaa6
test/unit/marked-spec.js
@@ -71,3 +71,12 @@ describe('Test paragraph token type', () => {
71
expect(tokens[7].type).toBe('text');
72
});
73
74
+
75
+describe('changeDefaults', () => {
76
+ it('should change global defaults', () => {
77
+ const { defaults, changeDefaults } = require('../../src/defaults');
78
+ expect(defaults.test).toBeUndefined();
79
+ changeDefaults({ test: true });
80
+ expect(require('../../src/defaults').defaults.test).toBe(true);
81
+ });
82
+});
0 commit comments