We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d373a6 commit 11d6836Copy full SHA for 11d6836
test/BranchSubscriber.test.js
@@ -2,15 +2,13 @@ import { BranchSubscriber } from 'react-native-branch'
2
3
test('BranchSubscriber default initializes with no options', () => {
4
const subscriber = new BranchSubscriber(null)
5
- expect(typeof subscriber.options).toBe('object')
+ expect(subscriber.options).toEqual({})
6
})
7
8
test('BranchSubscriber stores options passed to the constructor', () => {
9
const subscriber = new BranchSubscriber({
10
checkCachedEvents: false
11
12
13
14
- expect('checkCachedEvents' in subscriber.options).toBe(true)
15
- expect(subscriber.options.checkCachedEvents).toBe(false)
+ expect(subscriber.options).toEqual({ checkCachedEvents: false })
16
0 commit comments