github
180 of 238 branches covered (0.0%)
Branch coverage included in aggregate %.
41 of 53 new or added lines in 8 files covered. (77.36%)
6482 of 7362 relevant lines covered (88.05%)
3.57 hits per line
|
import { ReactNode } from 'react'; |
4✔ |
|
import { SharedLink } from './types'; |
4✔ |
|
import { SharedLinkContext } from './shared-link-provider.context'; |
4✔ |
|
|
4✔ |
|
export const SharedLinkProvider = ({ |
4✔ |
NEW
|
children, |
× |
NEW
|
DerivLink, |
× |
NEW
|
}: { |
× |
NEW
|
DerivLink: SharedLink;
|
× |
NEW
|
children: ReactNode;
|
× |
NEW
|
}) => { |
× |
NEW
|
return (
|
× |
NEW
|
<SharedLinkContext.Provider value={{ DerivLink }}> |
× |
NEW
|
{children} |
× |
NEW
|
</SharedLinkContext.Provider> |
× |
NEW
|
); |
× |
NEW
|
}; |
× |