-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: alignment of nonewupdates component
Signed-off-by: Bryce McMath <bryce.j.mcmath@gmail.com>
- Loading branch information
1 parent
60a3a6a
commit db8a2c7
Showing
4 changed files
with
88 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/legacy/core/__tests__/components/NoNewUpdates.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { render } from '@testing-library/react-native' | ||
import React from 'react' | ||
|
||
import NoNewUpdates from '../../App/components/misc/NoNewUpdates' | ||
|
||
jest.mock('react-native-vector-icons/MaterialIcons', () => 'Icon') | ||
|
||
describe('NoNewUpdates Component', () => { | ||
test('Renders correctly', () => { | ||
const tree = render(<NoNewUpdates />) | ||
|
||
expect(tree).toMatchSnapshot() | ||
}) | ||
}) |
56 changes: 56 additions & 0 deletions
56
packages/legacy/core/__tests__/components/__snapshots__/NoNewUpdates.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`NoNewUpdates Component Renders correctly 1`] = ` | ||
<View | ||
style={ | ||
Object { | ||
"backgroundColor": "#313132", | ||
"borderColor": "#0099FF", | ||
"borderRadius": 5, | ||
"borderWidth": 1, | ||
"padding": 10, | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"flexDirection": "row", | ||
"justifyContent": "space-between", | ||
} | ||
} | ||
> | ||
<View | ||
style={ | ||
Object { | ||
"alignSelf": "flex-start", | ||
"marginLeft": 0, | ||
"marginRight": 10, | ||
} | ||
} | ||
> | ||
<Icon | ||
color="#0099FF" | ||
name="info" | ||
size={30} | ||
/> | ||
</View> | ||
<Text | ||
style={ | ||
Object { | ||
"alignSelf": "center", | ||
"color": "#FFFFFF", | ||
"flex": 1, | ||
"flexWrap": "wrap", | ||
"fontSize": 18, | ||
"fontWeight": "normal", | ||
} | ||
} | ||
testID="com.ariesbifold:id/NoNewUpdates" | ||
> | ||
Home.NoNewUpdates | ||
</Text> | ||
</View> | ||
</View> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters