|
|
@@ -2,55 +2,37 @@
|
|
|
|
|
|
exports[`Render should render component 1`] = `
|
|
|
<Component
|
|
|
- title="Value Mappings"
|
|
|
+ onAdd={[Function]}
|
|
|
+ title="Add mapping"
|
|
|
>
|
|
|
- <div>
|
|
|
- <MappingRow
|
|
|
- key="Ok-0"
|
|
|
- removeValueMapping={[Function]}
|
|
|
- updateValueMapping={[Function]}
|
|
|
- valueMapping={
|
|
|
- Object {
|
|
|
- "id": 1,
|
|
|
- "operator": "",
|
|
|
- "text": "Ok",
|
|
|
- "type": 1,
|
|
|
- "value": "20",
|
|
|
- }
|
|
|
+ <MappingRow
|
|
|
+ key="Ok-0"
|
|
|
+ removeValueMapping={[Function]}
|
|
|
+ updateValueMapping={[Function]}
|
|
|
+ valueMapping={
|
|
|
+ Object {
|
|
|
+ "id": 1,
|
|
|
+ "operator": "",
|
|
|
+ "text": "Ok",
|
|
|
+ "type": 1,
|
|
|
+ "value": "20",
|
|
|
}
|
|
|
- />
|
|
|
- <MappingRow
|
|
|
- key="Meh-1"
|
|
|
- removeValueMapping={[Function]}
|
|
|
- updateValueMapping={[Function]}
|
|
|
- valueMapping={
|
|
|
- Object {
|
|
|
- "from": "21",
|
|
|
- "id": 2,
|
|
|
- "operator": "",
|
|
|
- "text": "Meh",
|
|
|
- "to": "30",
|
|
|
- "type": 2,
|
|
|
- }
|
|
|
+ }
|
|
|
+ />
|
|
|
+ <MappingRow
|
|
|
+ key="Meh-1"
|
|
|
+ removeValueMapping={[Function]}
|
|
|
+ updateValueMapping={[Function]}
|
|
|
+ valueMapping={
|
|
|
+ Object {
|
|
|
+ "from": "21",
|
|
|
+ "id": 2,
|
|
|
+ "operator": "",
|
|
|
+ "text": "Meh",
|
|
|
+ "to": "30",
|
|
|
+ "type": 2,
|
|
|
}
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div
|
|
|
- className="add-mapping-row"
|
|
|
- onClick={[Function]}
|
|
|
- >
|
|
|
- <div
|
|
|
- className="add-mapping-row-icon"
|
|
|
- >
|
|
|
- <i
|
|
|
- className="fa fa-plus"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div
|
|
|
- className="add-mapping-row-label"
|
|
|
- >
|
|
|
- Add mapping
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ }
|
|
|
+ />
|
|
|
</Component>
|
|
|
`;
|