Skip to content

Commit

Permalink
Add snapshot test for BuildInfo component
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyratox committed Jan 18, 2023
1 parent bb2dec6 commit 203a4d9
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fe1-web/src/core/components/__tests__/BuildInfo.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { render } from '@testing-library/react-native';
import React from 'react';

import BuildInfo from '../BuildInfo';

describe('BuildInfo', () => {
it('renders correctly', () => {
const { toJSON } = render(<BuildInfo />);
expect(toJSON()).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`BuildInfo renders correctly 1`] = `
<View
style={
Object {
"alignItems": "center",
"bottom": 8,
"display": "flex",
"flexDirection": "row",
"left": 8,
"position": "absolute",
"zIndex": 100,
}
}
>
<Text
style={
Array [
Object {
"fontSize": 8,
"lineHeight": 1,
},
Object {
"color": "#8E8E8E",
},
Object {
"fontFamily": "Courier New",
},
Object {
"textTransform": "uppercase",
},
]
}
>
<Text
onPress={[Function]}
/>
<Text>
|
</Text>
<Text
onPress={[Function]}
/>
<Text>
|
</Text>
<Text />
</Text>
</View>
`;

0 comments on commit 203a4d9

Please sign in to comment.