mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
SELF-1662: Improve prove deeplink navigation (#1517)
* Improve prove deeplink navigation * fix tests
This commit is contained in:
@@ -90,7 +90,10 @@ describe('deeplinks', () => {
|
||||
expect(mockStartAppListener).toHaveBeenCalledWith('abc');
|
||||
|
||||
const { navigationRef } = require('@/navigation');
|
||||
expect(navigationRef.navigate).toHaveBeenCalledWith('Prove');
|
||||
expect(navigationRef.reset).toHaveBeenCalledWith({
|
||||
index: 1,
|
||||
routes: [{ name: 'Home' }, { name: 'Prove' }],
|
||||
});
|
||||
});
|
||||
|
||||
it('handles sessionId parameter', () => {
|
||||
@@ -113,7 +116,10 @@ describe('deeplinks', () => {
|
||||
expect(mockStartAppListener).toHaveBeenCalledWith('123');
|
||||
|
||||
const { navigationRef } = require('@/navigation');
|
||||
expect(navigationRef.navigate).toHaveBeenCalledWith('Prove');
|
||||
expect(navigationRef.reset).toHaveBeenCalledWith({
|
||||
index: 1,
|
||||
routes: [{ name: 'Home' }, { name: 'Prove' }],
|
||||
});
|
||||
});
|
||||
|
||||
it('handles mock_passport parameter', () => {
|
||||
|
||||
Reference in New Issue
Block a user