File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1489,6 +1489,7 @@ export function viewProfileFromPostMessage(
1489
1489
return async ( dispatch ) => {
1490
1490
try {
1491
1491
const profile = await unserializeProfileOfArbitraryFormat ( rawProfile ) ;
1492
+ /* istanbul ignore if */
1492
1493
if ( profile === undefined ) {
1493
1494
throw new Error ( 'Unable to parse the profile.' ) ;
1494
1495
}
@@ -1497,6 +1498,7 @@ export function viewProfileFromPostMessage(
1497
1498
await dispatch ( viewProfile ( profile ) ) ;
1498
1499
} ) ;
1499
1500
} catch ( error ) {
1501
+ /* istanbul ignore next */
1500
1502
dispatch ( fatalError ( error ) ) ;
1501
1503
}
1502
1504
} ;
@@ -1647,6 +1649,7 @@ export function retrieveProfileForRawUrl(
1647
1649
window . addEventListener ( 'message' , ( event ) => {
1648
1650
const { data } = event ;
1649
1651
console . log ( `Received postMessage` , data ) ;
1652
+ /* istanbul ignore if */
1650
1653
if ( ! data || typeof data !== 'object' ) {
1651
1654
return ;
1652
1655
}
@@ -1668,6 +1671,7 @@ export function retrieveProfileForRawUrl(
1668
1671
break ;
1669
1672
}
1670
1673
default :
1674
+ /* istanbul ignore next */
1671
1675
console . log ( 'Unknown post message' , data ) ;
1672
1676
}
1673
1677
} ) ;
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ class ProfileLoaderImpl extends PureComponent<Props> {
82
82
case 'unpublished' :
83
83
case 'none' :
84
84
// nothing to do
85
+ /* istanbul ignore next */
85
86
break ;
86
87
default :
87
88
throw assertExhaustiveCheck ( dataSource ) ;
You can’t perform that action at this time.
0 commit comments