Skip to content

Commit 11d6836

Browse files
committed
Simplify tests
1 parent 7d373a6 commit 11d6836

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/BranchSubscriber.test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ import { BranchSubscriber } from 'react-native-branch'
22

33
test('BranchSubscriber default initializes with no options', () => {
44
const subscriber = new BranchSubscriber(null)
5-
expect(typeof subscriber.options).toBe('object')
5+
expect(subscriber.options).toEqual({})
66
})
77

88
test('BranchSubscriber stores options passed to the constructor', () => {
99
const subscriber = new BranchSubscriber({
1010
checkCachedEvents: false
1111
})
1212

13-
expect(typeof subscriber.options).toBe('object')
14-
expect('checkCachedEvents' in subscriber.options).toBe(true)
15-
expect(subscriber.options.checkCachedEvents).toBe(false)
13+
expect(subscriber.options).toEqual({ checkCachedEvents: false })
1614
})

0 commit comments

Comments
 (0)