Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Dec 5, 2019
1 parent d55fc10 commit 630aaa6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/marked-spec.js
Expand Up @@ -71,3 +71,12 @@ describe('Test paragraph token type', () => {
expect(tokens[7].type).toBe('text');
});
});

describe('changeDefaults', () => {
it('should change global defaults', () => {
const { defaults, changeDefaults } = require('../../src/defaults');
expect(defaults.test).toBeUndefined();
changeDefaults({ test: true });
expect(require('../../src/defaults').defaults.test).toBe(true);
});
});

0 comments on commit 630aaa6

Please sign in to comment.