Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
I changed the default value for the form field mock from an array to a
string; this fixes the few tests that were relying on it being an array.
  • Loading branch information
rylnd committed Sep 9, 2020
1 parent 1611b52 commit 8d88dcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useFormFieldMock } from '../../../../common/mock/test_providers';
describe('AddItem', () => {
it('renders correctly', () => {
const Component = () => {
const field = useFormFieldMock();
const field = useFormFieldMock<unknown>({ value: [] });

return (
<AddItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useFormFieldMock } from '../../../../common/mock';
describe('AddMitreThreat', () => {
it('renders correctly', () => {
const Component = () => {
const field = useFormFieldMock();
const field = useFormFieldMock<unknown>({ value: [] });

return (
<AddMitreThreat
Expand Down

0 comments on commit 8d88dcb

Please sign in to comment.