Skip to content

Commit

Permalink
✅ Add utils test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
carloscuesta committed Nov 2, 2019
1 parent 4c27d71 commit 0ada6a0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions 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)
})
})
})
})

0 comments on commit 0ada6a0

Please sign in to comment.