Skip to content

Commit

Permalink
Version 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardwissing committed Mar 29, 2019
1 parent 5d5842d commit bd577b1
Show file tree
Hide file tree
Showing 56 changed files with 5,531 additions and 999 deletions.
2 changes: 2 additions & 0 deletions __mocks__/react-native-camera.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const Camera = {}
export default Camera;
7 changes: 7 additions & 0 deletions __mocks__/react-native-keychain.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export async function getGenericPassword() {
return {
password: 'password',
};
}

export async function setGenericPassword() {}
5 changes: 5 additions & 0 deletions __mocks__/react-native-splash-screen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const SplashScreen = {
hide: jest.fn(),
}

export default SplashScreen;
29 changes: 29 additions & 0 deletions __mocks__/react-native.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const rn = require('react-native');

jest.useFakeTimers();

jest.mock('Alert', () => ({ alert: jest.fn() }));

jest.mock('NativeModules', () => ({
RNRandomBytes: {
seed: '123',
},
P2PTransferBLECentralModule: {
addListener: jest.fn(),
},
P2PTransferBLEPeripheralModule: {},
KeyboardObserver: {
addListener: jest.fn(),
},
StatusBarManager: {
HEIGHT: 42,
setColor: jest.fn(),
setStyle: jest.fn(),
setHidden: jest.fn(),
setNetworkActivityIndicatorVisible: jest.fn(),
setBackgroundColor: jest.fn(),
setTranslucent: jest.fn(),
},
}));

module.exports = rn;
12 changes: 0 additions & 12 deletions __tests__/App.js

This file was deleted.

Loading

0 comments on commit bd577b1

Please sign in to comment.