Ensuring react-test-renderer is the correct version and enabling test

This commit is contained in:
Jeff Avallone
2018-03-31 05:18:54 -04:00
parent 1b87abb4fe
commit f5f30a854b
3 changed files with 10 additions and 7 deletions
+1 -4
View File
@@ -60,14 +60,11 @@ describe('Form', () => {
expect(component.state('syntax')).toEqual('Testing value');
});
// Disabled due to testing with getDerivedStateFromProps appears to be broken
// Testing this behavior in browser works correctly
xtest('setting expression and syntax via props', () => {
test('setting expression and syntax via props', () => {
const component = shallow(
<Form t={ translate } syntaxes={ syntaxes }/>
);
expect(component.state()).toEqual(expect.objectContaining({
expr: undefined,
syntax: 'js'
}));
component.setProps({ expr: 'Testing expression' });