Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Suzanne Rozier committed Sep 11, 2019
1 parent 6b1bcd0 commit 33d985b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/validators/__tests__/accordion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ describe('The accordion validator', () => {
it('fails if items is undefined', () => {
const testData = { items: undefined, branch: { value: 'No' } }
const validator = { value: { email: true } }
expect(accordion(testData, { validator })).toEqual('MISSING_ITEMS')
expect(accordion(testData, { validator })).toEqual(['MISSING_ITEMS'])
})

it('fails if there are no items', () => {
const testData = { items: [], branch: { value: 'No' } }
const validator = { value: { email: true } }
expect(accordion(testData, { validator })).toEqual('MISSING_ITEMS')
expect(accordion(testData, { validator })).toEqual(['MISSING_ITEMS'])
})

it('fails if there is no validator', () => {
Expand Down

0 comments on commit 33d985b

Please sign in to comment.