Skip to content

Commit

Permalink
Add additional test for a non-repeatable literal item
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Jun 14, 2019
1 parent 608c877 commit 145a523
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions __tests__/components/editor/property/InputLiteral.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ describe('When the user enters input into field', () => {
reduxPath: ['resourceTemplate:bf2:Monograph:Instance', 'http://id.loc.gov/ontologies/bibframe/instanceOf'],
},
)
expect(mockItemsChange.mock.calls[1][0]).not.toEqual(
{
uri: 'http://id.loc.gov/ontologies/bibframe/instanceOf',
items: [{ content: 'foobyTwo', id: 1 }],
reduxPath: ['resourceTemplate:bf2:Monograph:Instance', 'http://id.loc.gov/ontologies/bibframe/instanceOf'],
},
)
})

it('required is only true for first item in myItems array', () => {
Expand Down

0 comments on commit 145a523

Please sign in to comment.