File tree 4 files changed +19
-5
lines changed
4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ module.exports = {
88
88
// notifyMode: "failure-change",
89
89
90
90
// A preset that is used as a base for Jest's configuration
91
- // preset: null ,
91
+ preset : 'react-native' ,
92
92
93
93
// Run tests from one or more projects
94
94
// projects: null,
@@ -123,7 +123,9 @@ module.exports = {
123
123
// setupFiles: [],
124
124
125
125
// A list of paths to modules that run some code to configure or set up the testing framework before each test
126
- // setupFilesAfterEnv: [],
126
+ setupFilesAfterEnv : [
127
+ './test/RNBranchMock.js'
128
+ ] ,
127
129
128
130
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
129
131
// snapshotSerializers: [],
Original file line number Diff line number Diff line change
1
+ import BranchSubscriber from '../src/BranchSubscriber'
2
+
3
+ test ( 'BranchSubscriber default initializes with no options' , ( ) => {
4
+ const subscriber = new BranchSubscriber ( null )
5
+ expect ( typeof subscriber . options ) . toBe ( 'object' )
6
+ } )
Original file line number Diff line number Diff line change
1
+ import { NativeModules } from 'react-native'
2
+
3
+ NativeModules . RNBranch = {
4
+
5
+ }
6
+
7
+ NativeModules . RNBranchEventEmitter = {
8
+
9
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments