mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
Fix: tests
This commit is contained in:
parent
c65d335b25
commit
f7ccae9e75
@ -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
|
</div>
|
||||||
twoLine={true}
|
<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"
|
onClick={[Function]}
|
||||||
>
|
>
|
||||||
<a
|
<strong>
|
||||||
href="/strategies/view/Another"
|
Another
|
||||||
onClick={[Function]}
|
</strong>
|
||||||
>
|
</a>
|
||||||
<strong>
|
</react-mdl-ListItemContent>
|
||||||
Another
|
|
||||||
</strong>
|
</react-mdl-ListItem>
|
||||||
</a>
|
</react-mdl-List>
|
||||||
</react-mdl-ListItemContent>
|
</react-mdl-Card>
|
||||||
|
|
||||||
</react-mdl-ListItem>
|
|
||||||
</react-mdl-List>
|
|
||||||
</react-mdl-Cell>
|
|
||||||
</react-mdl-Grid>
|
|
||||||
`;
|
`;
|
||||||
|
Loading…
Reference in New Issue
Block a user