-
-
Notifications
You must be signed in to change notification settings - Fork 203
/
utils.spec.js
27 lines (22 loc) 路 856 Bytes
/
utils.spec.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)
})
})
})
})