mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
Fix for App.test selfTest
This commit is contained in:
parent
365ae9e34e
commit
f61b996f11
14
App.test.js
14
App.test.js
@ -25,6 +25,20 @@ jest.mock('Picker', () => {
|
||||
}
|
||||
};
|
||||
});
|
||||
jest.mock('ScrollView', () => {
|
||||
const RealComponent = require.requireActual('ScrollView');
|
||||
const React = require('React');
|
||||
class ScrollView extends React.Component {
|
||||
scrollTo() {
|
||||
}
|
||||
|
||||
render() {
|
||||
return React.createElement('ScrollView', this.props, this.props.children);
|
||||
}
|
||||
}
|
||||
ScrollView.propTypes = RealComponent.propTypes;
|
||||
return ScrollView;
|
||||
});
|
||||
|
||||
describe('unit - LegacyWallet', function() {
|
||||
it('serialize and unserialize work correctly', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user