Project

General

Profile

« Previous | Next » 

Revision 41923c43

Added by Ondřej Pražák almost 5 years ago

Fixes #27577 - Fail test on console.error

View differences:

webpack/assets/javascripts/react_app/components/common/Slot/__snapshots__/Slot.test.js.snap
>
<SlotComponent
dispatch={[Function]}
key="key"
text="this prop should be taken"
>
<div>
......
</Slot>
`;
exports[`Slot-Fill multi slot with override props fill amd component fill 1`] = `
exports[`Slot-Fill multi slot with override props fill and component fill 1`] = `
<Slot
dispatch={[Function]}
fills={
......
"key": "def",
"text": "This should be in the snap",
},
<div>
Also this should be in the snap
</div>,
<TestComponent />,
]
}
id="slot-10"
......
This should be in the snap
</div>
</SlotComponent>
<div
<TestComponent
dispatch={[Function]}
key="abc"
>
Also this should be in the snap
</div>
<div>
Also this should be in the snap
</div>
</TestComponent>
</Slot>
`;
......
dispatch={[Function]}
fills={
Array [
<span>
This span should be in the snap
</span>,
<PresentComponent />,
]
}
id="slot-2"
multi={false}
>
<span
<PresentComponent
dispatch={[Function]}
key="b"
>
This span should be in the snap
</span>
<span>
This span should be in the snap
</span>
</PresentComponent>
</Slot>
`;
......
>
<SlotComponent
dispatch={[Function]}
key="c"
text="This is given by a prop"
>
<div>
......
dispatch={[Function]}
fills={
Array [
<span>
Should be the first in the snap
</span>,
<div>
should be the second in the snap
</div>,
<FirstComponent />,
<SecondComponent />,
]
}
id="slot-1"
multi={true}
>
<span
<FirstComponent
dispatch={[Function]}
key="2"
>
Should be the first in the snap
</span>
<div
<span>
Should be the first in the snap
</span>
</FirstComponent>
<SecondComponent
dispatch={[Function]}
key="1"
>
should be the second in the snap
</div>
<span>
Should be the first in the snap
</span>
</SecondComponent>
</Slot>
`;
......
fills={
Array [
Object {
"key": "textKey",
"text": "This text should be in the snap",
},
]
......
>
<SlotComponent
dispatch={[Function]}
key="textKey"
text="This text should be in the snap"
>
<div>

Also available in: Unified diff