mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(tests): format options correctly
This commit is contained in:
@@ -46,7 +46,7 @@ describe("<CustomMultiSelect />", () => {
|
||||
const tree = shallow(
|
||||
<CustomMultiSelect
|
||||
defaultValue={Option("foo")}
|
||||
options={[Option("foo", Option("bar"))]}
|
||||
options={[Option("foo"), Option("bar")]}
|
||||
/>
|
||||
);
|
||||
expect(toDiffableHtml(tree.html())).toMatchSnapshot();
|
||||
@@ -57,7 +57,7 @@ describe("<CustomMultiSelect />", () => {
|
||||
<CustomMultiSelect
|
||||
isMulti
|
||||
defaultValue={Option("foo")}
|
||||
options={[Option("foo", Option("bar"))]}
|
||||
options={[Option("foo"), Option("bar")]}
|
||||
/>
|
||||
);
|
||||
expect(toDiffableHtml(tree.html())).toMatchSnapshot();
|
||||
|
||||
Reference in New Issue
Block a user