Skip to content

Commit a39d733

Browse files
authored
TextField Screen snapshot test (#3142)
* testing that text field label view wrapper isn't centerV * TextField screen snapshot test * snpashot update, textfield screen refactor
1 parent 52a1ba8 commit a39d733

File tree

3 files changed

+6070
-1
lines changed

3 files changed

+6070
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react';
2+
import renderer from 'react-test-renderer';
3+
4+
describe('TextField Screen', () => {
5+
let TextFieldScreen;
6+
7+
beforeEach(() => {
8+
TextFieldScreen = require('../componentScreens/TextFieldScreen').default;
9+
});
10+
11+
it('renders screen', () => {
12+
const tree = renderer.create(<TextFieldScreen/>).toJSON();
13+
expect(tree).toMatchSnapshot();
14+
});
15+
});

0 commit comments

Comments
 (0)