1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

Fix: tests

This commit is contained in:
ivaosthu 2019-05-04 06:31:12 +02:00
parent c65d335b25
commit f7ccae9e75

View File

@ -1,138 +1,142 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly with one strategy 1`] = ` exports[`renders correctly with one strategy 1`] = `
<react-mdl-Grid <react-mdl-Card
className="mdl-color--white" className="fullwidth"
shadow={0}
style={
Object {
"overflow": "visible",
}
}
> >
<react-mdl-Cell <div
col={12} style={
Object {
"borderBottom": "1px solid #f1f1f1",
"display": "flex",
"marginBottom": "10px",
"padding": "16px 20px ",
}
}
> >
<div <div
style={ style={
Object { Object {
"borderBottom": "1px solid #f1f1f1", "flex": "2",
"display": "flex",
"marginBottom": "10px",
"padding": "16px 20px ",
} }
} }
> >
<div <h6
style={ style={
Object { Object {
"flex": "2", "margin": 0,
} }
} }
> >
<h6 Strategies
style={ </h6>
Object {
"margin": 0,
}
}
>
Strategies
</h6>
</div>
<div
style={
Object {
"flex": "1",
"textAlign": "right",
}
}
>
<react-mdl-IconButton
name="add"
onClick={[Function]}
raised={true}
title="Add new strategy"
/>
</div>
</div> </div>
<react-mdl-List> <div
<react-mdl-ListItem style={
twoLine={true} Object {
"flex": "1",
"textAlign": "right",
}
}
>
<react-mdl-IconButton
name="add"
onClick={[Function]}
raised={true}
title="Add new strategy"
/>
</div>
</div>
<react-mdl-List>
<react-mdl-ListItem
twoLine={true}
>
<react-mdl-ListItemContent
icon="extension"
subtitle="another's description"
> >
<react-mdl-ListItemContent <a
icon="extension" href="/strategies/view/Another"
subtitle="another's description"
>
<a
href="/strategies/view/Another"
onClick={[Function]}
>
<strong>
Another
</strong>
</a>
</react-mdl-ListItemContent>
<react-mdl-IconButton
name="delete"
onClick={[Function]} onClick={[Function]}
/> >
</react-mdl-ListItem> <strong>
</react-mdl-List> Another
</react-mdl-Cell> </strong>
</react-mdl-Grid> </a>
</react-mdl-ListItemContent>
<react-mdl-IconButton
name="delete"
onClick={[Function]}
/>
</react-mdl-ListItem>
</react-mdl-List>
</react-mdl-Card>
`; `;
exports[`renders correctly with one strategy without permissions 1`] = ` exports[`renders correctly with one strategy without permissions 1`] = `
<react-mdl-Grid <react-mdl-Card
className="mdl-color--white" className="fullwidth"
shadow={0}
style={
Object {
"overflow": "visible",
}
}
> >
<react-mdl-Cell <div
col={12} style={
Object {
"borderBottom": "1px solid #f1f1f1",
"display": "flex",
"marginBottom": "10px",
"padding": "16px 20px ",
}
}
> >
<div <div
style={ style={
Object { Object {
"borderBottom": "1px solid #f1f1f1", "flex": "2",
"display": "flex",
"marginBottom": "10px",
"padding": "16px 20px ",
} }
} }
> >
<div <h6
style={ style={
Object { Object {
"flex": "2", "margin": 0,
} }
} }
> >
<h6 Strategies
style={ </h6>
Object {
"margin": 0,
}
}
>
Strategies
</h6>
</div>
</div> </div>
<react-mdl-List>
<react-mdl-ListItem
twoLine={true}
>
<react-mdl-ListItemContent
icon="extension"
subtitle="another's description"
>
<a
href="/strategies/view/Another"
onClick={[Function]}
>
<strong>
Another
</strong>
</a>
</react-mdl-ListItemContent>
</react-mdl-ListItem> </div>
</react-mdl-List> <react-mdl-List>
</react-mdl-Cell> <react-mdl-ListItem
</react-mdl-Grid> twoLine={true}
>
<react-mdl-ListItemContent
icon="extension"
subtitle="another's description"
>
<a
href="/strategies/view/Another"
onClick={[Function]}
>
<strong>
Another
</strong>
</a>
</react-mdl-ListItemContent>
</react-mdl-ListItem>
</react-mdl-List>
</react-mdl-Card>
`; `;