diff --git a/test/utils.spec.js b/test/utils.spec.js new file mode 100644 index 0000000000..4d51b30e84 --- /dev/null +++ b/test/utils.spec.js @@ -0,0 +1,27 @@ +import configurationVault from '../src/utils/configurationVault' + +describe('utils', () => { + describe('configurationVault', () => { + it('should match the module', () => { + expect(configurationVault).toMatchSnapshot() + }) + + describe('defaults', () => { + it('should return the default value for autoAdd', () => { + expect(configurationVault.getAutoAdd()).toEqual(false) + }) + + it('should return the default value for emojiFormat', () => { + expect(configurationVault.getEmojiFormat()).toEqual('code') + }) + + it('should return the default value for signedCommit', () => { + expect(configurationVault.getSignedCommit()).toEqual(false) + }) + + it('should return the default value for scopePrompt', () => { + expect(configurationVault.getScopePrompt()).toEqual(false) + }) + }) + }) +})