github
183 of 241 branches covered (0.0%)
Branch coverage included in aggregate %.
41 of 53 new or added lines in 8 files covered. (77.36%)
6519 of 7417 relevant lines covered (87.89%)
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
|
}; |
× |