@tivio/sdk-react 2.1.4 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -0
- package/coverage/clover.xml +356 -95
- package/coverage/lcov-report/index.html +55 -25
- package/coverage/lcov-report/src/components/ContextProvider.tsx.html +194 -0
- package/coverage/lcov-report/src/components/TivioProvider.tsx.html +109 -37
- package/coverage/lcov-report/src/components/TivioWidgetError.tsx.html +3 -3
- package/coverage/lcov-report/src/components/TivioWidgetLoader.tsx.html +3 -3
- package/coverage/lcov-report/src/components/context/ChannelsContext.tsx.html +197 -0
- package/coverage/lcov-report/src/components/context/OrganizationSubscriptionsContext.tsx.html +179 -0
- package/coverage/lcov-report/src/components/context/PurchasesWithVideosContext.tsx.html +179 -0
- package/coverage/lcov-report/src/components/context/RowItemsContext.tsx.html +191 -0
- package/coverage/lcov-report/src/components/context/ScreensContext.tsx.html +185 -0
- package/coverage/lcov-report/src/components/context/SectionsContext.tsx.html +200 -0
- package/coverage/lcov-report/src/components/context/UserContext.tsx.html +176 -0
- package/coverage/lcov-report/src/components/context/VideosContext.tsx.html +200 -0
- package/coverage/lcov-report/src/components/context/index.html +231 -0
- package/coverage/lcov-report/src/components/context/index.ts.html +104 -0
- package/coverage/lcov-report/src/components/index.html +32 -32
- package/coverage/lcov-report/src/conf.ts.html +27 -21
- package/coverage/lcov-report/src/index.html +21 -6
- package/coverage/lcov-report/src/services/bundleLoader.ts.html +127 -157
- package/coverage/lcov-report/src/services/dependencyResolver.ts.html +36 -30
- package/coverage/lcov-report/src/services/index.html +102 -42
- package/coverage/lcov-report/src/services/logger.ts.html +53 -98
- package/coverage/lcov-report/src/services/packageLoader.ts.html +31 -31
- package/coverage/lcov-report/src/services/pubSub.ts.html +9 -9
- package/coverage/lcov-report/src/services/sentry.ts.html +170 -0
- package/coverage/lcov-report/src/services/settings.ts.html +34 -34
- package/coverage/lcov-report/src/setupTests.ts.html +9 -9
- package/coverage/lcov.info +641 -141
- package/dist/components/TivioProvider.d.ts +3 -0
- package/dist/components/hooks/usePurchaseSubscription.d.ts +2 -7
- package/dist/components/hooks/useTransactionPayment.d.ts +2 -7
- package/dist/conf.d.ts +1 -0
- package/dist/index.js +1 -2
- package/dist/services/dependencyResolver.d.ts +2 -1
- package/dist/services/sentry.d.ts +2 -5
- package/dist/types.d.ts +5 -13
- package/env +0 -0
- package/package.json +12 -12
- package/scripts/build_dev.sh +3 -0
- package/scripts/build_prod.sh +3 -0
- package/scripts/postpublish.ts +10 -0
- package/scripts/start.sh +3 -0
- package/dist/index.js.LICENSE.txt +0 -114
@@ -0,0 +1,176 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for src/components/context/UserContext.tsx</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/components/context</a> UserContext.tsx</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">87.5% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>7/8</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">100% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>0/0</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">50% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>1/2</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">87.5% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>7/8</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
</div>
|
58
|
+
<div class='status-line high'></div>
|
59
|
+
<pre><table class="coverage">
|
60
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
61
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
62
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
63
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
64
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
65
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
66
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
67
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
68
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
69
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
70
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
71
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
72
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
73
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
74
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
75
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
76
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
77
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
78
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
79
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
80
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
81
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
82
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
83
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
84
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
85
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
86
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
87
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
88
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
89
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
90
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
91
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
92
|
+
<a name='L33'></a><a href='#L33'>33</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">3x</span>
|
93
|
+
<span class="cline-any cline-neutral"> </span>
|
94
|
+
<span class="cline-any cline-neutral"> </span>
|
95
|
+
<span class="cline-any cline-neutral"> </span>
|
96
|
+
<span class="cline-any cline-neutral"> </span>
|
97
|
+
<span class="cline-any cline-neutral"> </span>
|
98
|
+
<span class="cline-any cline-neutral"> </span>
|
99
|
+
<span class="cline-any cline-neutral"> </span>
|
100
|
+
<span class="cline-any cline-yes">3x</span>
|
101
|
+
<span class="cline-any cline-neutral"> </span>
|
102
|
+
<span class="cline-any cline-no"> </span>
|
103
|
+
<span class="cline-any cline-neutral"> </span>
|
104
|
+
<span class="cline-any cline-neutral"> </span>
|
105
|
+
<span class="cline-any cline-yes">3x</span>
|
106
|
+
<span class="cline-any cline-yes">2x</span>
|
107
|
+
<span class="cline-any cline-neutral"> </span>
|
108
|
+
<span class="cline-any cline-yes">2x</span>
|
109
|
+
<span class="cline-any cline-neutral"> </span>
|
110
|
+
<span class="cline-any cline-neutral"> </span>
|
111
|
+
<span class="cline-any cline-neutral"> </span>
|
112
|
+
<span class="cline-any cline-neutral"> </span>
|
113
|
+
<span class="cline-any cline-neutral"> </span>
|
114
|
+
<span class="cline-any cline-neutral"> </span>
|
115
|
+
<span class="cline-any cline-neutral"> </span>
|
116
|
+
<span class="cline-any cline-neutral"> </span>
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
120
|
+
<span class="cline-any cline-neutral"> </span>
|
121
|
+
<span class="cline-any cline-yes">3x</span>
|
122
|
+
<span class="cline-any cline-yes">3x</span>
|
123
|
+
<span class="cline-any cline-neutral"> </span>
|
124
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { createContext, useState } from 'react'
|
125
|
+
import { User } from '../../types'
|
126
|
+
|
127
|
+
interface UserContextState {
|
128
|
+
user: User | null,
|
129
|
+
setUser: (user: User) => void
|
130
|
+
}
|
131
|
+
|
132
|
+
const UserContext = createContext<UserContextState>({
|
133
|
+
user: null,
|
134
|
+
setUser: <span class="fstat-no" title="function not covered" >() =</span>> <span class="cstat-no" title="statement not covered" >null,</span>
|
135
|
+
})
|
136
|
+
|
137
|
+
const UserContextProvider: React.FC = (props) => {
|
138
|
+
const [ user, setUser ] = useState<User | null>(null)
|
139
|
+
|
140
|
+
return (
|
141
|
+
<UserContext.Provider
|
142
|
+
value={{
|
143
|
+
user,
|
144
|
+
setUser,
|
145
|
+
}}
|
146
|
+
>
|
147
|
+
{props.children}
|
148
|
+
</UserContext.Provider>
|
149
|
+
)
|
150
|
+
}
|
151
|
+
|
152
|
+
export {
|
153
|
+
UserContextProvider,
|
154
|
+
UserContext,
|
155
|
+
}
|
156
|
+
</pre></td></tr></table></pre>
|
157
|
+
|
158
|
+
<div class='push'></div><!-- for sticky footer -->
|
159
|
+
</div><!-- /wrapper -->
|
160
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
161
|
+
Code coverage generated by
|
162
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
163
|
+
at Sat Oct 23 2021 10:01:51 GMT+0200 (Central European Summer Time)
|
164
|
+
</div>
|
165
|
+
</div>
|
166
|
+
<script src="../../../prettify.js"></script>
|
167
|
+
<script>
|
168
|
+
window.onload = function () {
|
169
|
+
prettyPrint();
|
170
|
+
};
|
171
|
+
</script>
|
172
|
+
<script src="../../../sorter.js"></script>
|
173
|
+
<script src="../../../block-navigation.js"></script>
|
174
|
+
</body>
|
175
|
+
</html>
|
176
|
+
|
@@ -0,0 +1,200 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for src/components/context/VideosContext.tsx</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/components/context</a> VideosContext.tsx</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">69.23% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>9/13</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">100% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>0/0</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">33.33% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>1/3</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">69.23% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>9/13</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
</div>
|
58
|
+
<div class='status-line medium'></div>
|
59
|
+
<pre><table class="coverage">
|
60
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
61
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
62
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
63
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
64
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
65
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
66
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
67
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
68
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
69
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
70
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
71
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
72
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
73
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
74
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
75
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
76
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
77
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
78
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
79
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
80
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
81
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
82
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
83
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
84
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
85
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
86
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
87
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
88
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
89
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
90
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
91
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
92
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
93
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
94
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
95
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
96
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
97
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
98
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
99
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
100
|
+
<a name='L41'></a><a href='#L41'>41</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">3x</span>
|
101
|
+
<span class="cline-any cline-neutral"> </span>
|
102
|
+
<span class="cline-any cline-neutral"> </span>
|
103
|
+
<span class="cline-any cline-neutral"> </span>
|
104
|
+
<span class="cline-any cline-neutral"> </span>
|
105
|
+
<span class="cline-any cline-yes">3x</span>
|
106
|
+
<span class="cline-any cline-neutral"> </span>
|
107
|
+
<span class="cline-any cline-no"> </span>
|
108
|
+
<span class="cline-any cline-neutral"> </span>
|
109
|
+
<span class="cline-any cline-neutral"> </span>
|
110
|
+
<span class="cline-any cline-yes">3x</span>
|
111
|
+
<span class="cline-any cline-yes">2x</span>
|
112
|
+
<span class="cline-any cline-yes">2x</span>
|
113
|
+
<span class="cline-any cline-neutral"> </span>
|
114
|
+
<span class="cline-any cline-yes">2x</span>
|
115
|
+
<span class="cline-any cline-no"> </span>
|
116
|
+
<span class="cline-any cline-neutral"> </span>
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
120
|
+
<span class="cline-any cline-no"> </span>
|
121
|
+
<span class="cline-any cline-no"> </span>
|
122
|
+
<span class="cline-any cline-neutral"> </span>
|
123
|
+
<span class="cline-any cline-neutral"> </span>
|
124
|
+
<span class="cline-any cline-yes">2x</span>
|
125
|
+
<span class="cline-any cline-neutral"> </span>
|
126
|
+
<span class="cline-any cline-neutral"> </span>
|
127
|
+
<span class="cline-any cline-neutral"> </span>
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
131
|
+
<span class="cline-any cline-neutral"> </span>
|
132
|
+
<span class="cline-any cline-neutral"> </span>
|
133
|
+
<span class="cline-any cline-neutral"> </span>
|
134
|
+
<span class="cline-any cline-neutral"> </span>
|
135
|
+
<span class="cline-any cline-neutral"> </span>
|
136
|
+
<span class="cline-any cline-neutral"> </span>
|
137
|
+
<span class="cline-any cline-yes">3x</span>
|
138
|
+
<span class="cline-any cline-yes">3x</span>
|
139
|
+
<span class="cline-any cline-neutral"> </span>
|
140
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { createContext, useRef, useState } from 'react'
|
141
|
+
import { Video } from '../../types'
|
142
|
+
import { DataState, HookData } from './types'
|
143
|
+
|
144
|
+
|
145
|
+
const VideosContext = createContext<DataState<Video>>({
|
146
|
+
data: {},
|
147
|
+
setData: <span class="fstat-no" title="function not covered" >() =</span>> <span class="cstat-no" title="statement not covered" >null,</span>
|
148
|
+
})
|
149
|
+
|
150
|
+
const VideosContextProvider: React.FC = (props) => {
|
151
|
+
const [ videosState, setVideosState ] = useState({})
|
152
|
+
const videosStateRef = useRef(videosState)
|
153
|
+
|
154
|
+
const handleSetVideosState = <span class="fstat-no" title="function not covered" >(s</span>ectionId: string, videos: HookData<Video>) => {
|
155
|
+
const newVideos = <span class="cstat-no" title="statement not covered" >{</span>
|
156
|
+
...videosStateRef.current,
|
157
|
+
[sectionId]: videos,
|
158
|
+
}
|
159
|
+
|
160
|
+
<span class="cstat-no" title="statement not covered" > videosStateRef.current = newVideos</span>
|
161
|
+
<span class="cstat-no" title="statement not covered" > setVideosState(newVideos)</span>
|
162
|
+
}
|
163
|
+
|
164
|
+
return (
|
165
|
+
<VideosContext.Provider
|
166
|
+
value={{
|
167
|
+
data: videosState,
|
168
|
+
setData: handleSetVideosState,
|
169
|
+
}}
|
170
|
+
>
|
171
|
+
{props.children}
|
172
|
+
</VideosContext.Provider>
|
173
|
+
)
|
174
|
+
}
|
175
|
+
|
176
|
+
export {
|
177
|
+
VideosContext,
|
178
|
+
VideosContextProvider,
|
179
|
+
}
|
180
|
+
</pre></td></tr></table></pre>
|
181
|
+
|
182
|
+
<div class='push'></div><!-- for sticky footer -->
|
183
|
+
</div><!-- /wrapper -->
|
184
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
185
|
+
Code coverage generated by
|
186
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
187
|
+
at Sat Oct 23 2021 10:01:51 GMT+0200 (Central European Summer Time)
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
<script src="../../../prettify.js"></script>
|
191
|
+
<script>
|
192
|
+
window.onload = function () {
|
193
|
+
prettyPrint();
|
194
|
+
};
|
195
|
+
</script>
|
196
|
+
<script src="../../../sorter.js"></script>
|
197
|
+
<script src="../../../block-navigation.js"></script>
|
198
|
+
</body>
|
199
|
+
</html>
|
200
|
+
|
@@ -0,0 +1,231 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for src/components/context</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../../index.html">All files</a> src/components/context</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">79.12% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>72/91</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">100% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>0/0</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">40% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>8/20</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">79.12% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>72/91</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
</div>
|
58
|
+
<div class='status-line medium'></div>
|
59
|
+
<div class="pad1">
|
60
|
+
<table class="coverage-summary">
|
61
|
+
<thead>
|
62
|
+
<tr>
|
63
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
64
|
+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
65
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
66
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
67
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
68
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
69
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
70
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
71
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
72
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
73
|
+
</tr>
|
74
|
+
</thead>
|
75
|
+
<tbody><tr>
|
76
|
+
<td class="file medium" data-value="ChannelsContext.tsx"><a href="ChannelsContext.tsx.html">ChannelsContext.tsx</a></td>
|
77
|
+
<td data-value="69.23" class="pic medium">
|
78
|
+
<div class="chart"><div class="cover-fill" style="width: 69%"></div><div class="cover-empty" style="width: 31%"></div></div>
|
79
|
+
</td>
|
80
|
+
<td data-value="69.23" class="pct medium">69.23%</td>
|
81
|
+
<td data-value="13" class="abs medium">9/13</td>
|
82
|
+
<td data-value="100" class="pct high">100%</td>
|
83
|
+
<td data-value="0" class="abs high">0/0</td>
|
84
|
+
<td data-value="33.33" class="pct low">33.33%</td>
|
85
|
+
<td data-value="3" class="abs low">1/3</td>
|
86
|
+
<td data-value="69.23" class="pct medium">69.23%</td>
|
87
|
+
<td data-value="13" class="abs medium">9/13</td>
|
88
|
+
</tr>
|
89
|
+
|
90
|
+
<tr>
|
91
|
+
<td class="file high" data-value="OrganizationSubscriptionsContext.tsx"><a href="OrganizationSubscriptionsContext.tsx.html">OrganizationSubscriptionsContext.tsx</a></td>
|
92
|
+
<td data-value="87.5" class="pic high">
|
93
|
+
<div class="chart"><div class="cover-fill" style="width: 87%"></div><div class="cover-empty" style="width: 13%"></div></div>
|
94
|
+
</td>
|
95
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
96
|
+
<td data-value="8" class="abs high">7/8</td>
|
97
|
+
<td data-value="100" class="pct high">100%</td>
|
98
|
+
<td data-value="0" class="abs high">0/0</td>
|
99
|
+
<td data-value="50" class="pct medium">50%</td>
|
100
|
+
<td data-value="2" class="abs medium">1/2</td>
|
101
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
102
|
+
<td data-value="8" class="abs high">7/8</td>
|
103
|
+
</tr>
|
104
|
+
|
105
|
+
<tr>
|
106
|
+
<td class="file high" data-value="PurchasesWithVideosContext.tsx"><a href="PurchasesWithVideosContext.tsx.html">PurchasesWithVideosContext.tsx</a></td>
|
107
|
+
<td data-value="87.5" class="pic high">
|
108
|
+
<div class="chart"><div class="cover-fill" style="width: 87%"></div><div class="cover-empty" style="width: 13%"></div></div>
|
109
|
+
</td>
|
110
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
111
|
+
<td data-value="8" class="abs high">7/8</td>
|
112
|
+
<td data-value="100" class="pct high">100%</td>
|
113
|
+
<td data-value="0" class="abs high">0/0</td>
|
114
|
+
<td data-value="50" class="pct medium">50%</td>
|
115
|
+
<td data-value="2" class="abs medium">1/2</td>
|
116
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
117
|
+
<td data-value="8" class="abs high">7/8</td>
|
118
|
+
</tr>
|
119
|
+
|
120
|
+
<tr>
|
121
|
+
<td class="file high" data-value="RowItemsContext.tsx"><a href="RowItemsContext.tsx.html">RowItemsContext.tsx</a></td>
|
122
|
+
<td data-value="80" class="pic high">
|
123
|
+
<div class="chart"><div class="cover-fill" style="width: 80%"></div><div class="cover-empty" style="width: 20%"></div></div>
|
124
|
+
</td>
|
125
|
+
<td data-value="80" class="pct high">80%</td>
|
126
|
+
<td data-value="10" class="abs high">8/10</td>
|
127
|
+
<td data-value="100" class="pct high">100%</td>
|
128
|
+
<td data-value="0" class="abs high">0/0</td>
|
129
|
+
<td data-value="33.33" class="pct low">33.33%</td>
|
130
|
+
<td data-value="3" class="abs low">1/3</td>
|
131
|
+
<td data-value="80" class="pct high">80%</td>
|
132
|
+
<td data-value="10" class="abs high">8/10</td>
|
133
|
+
</tr>
|
134
|
+
|
135
|
+
<tr>
|
136
|
+
<td class="file high" data-value="ScreensContext.tsx"><a href="ScreensContext.tsx.html">ScreensContext.tsx</a></td>
|
137
|
+
<td data-value="80" class="pic high">
|
138
|
+
<div class="chart"><div class="cover-fill" style="width: 80%"></div><div class="cover-empty" style="width: 20%"></div></div>
|
139
|
+
</td>
|
140
|
+
<td data-value="80" class="pct high">80%</td>
|
141
|
+
<td data-value="10" class="abs high">8/10</td>
|
142
|
+
<td data-value="100" class="pct high">100%</td>
|
143
|
+
<td data-value="0" class="abs high">0/0</td>
|
144
|
+
<td data-value="50" class="pct medium">50%</td>
|
145
|
+
<td data-value="2" class="abs medium">1/2</td>
|
146
|
+
<td data-value="80" class="pct high">80%</td>
|
147
|
+
<td data-value="10" class="abs high">8/10</td>
|
148
|
+
</tr>
|
149
|
+
|
150
|
+
<tr>
|
151
|
+
<td class="file medium" data-value="SectionsContext.tsx"><a href="SectionsContext.tsx.html">SectionsContext.tsx</a></td>
|
152
|
+
<td data-value="69.23" class="pic medium">
|
153
|
+
<div class="chart"><div class="cover-fill" style="width: 69%"></div><div class="cover-empty" style="width: 31%"></div></div>
|
154
|
+
</td>
|
155
|
+
<td data-value="69.23" class="pct medium">69.23%</td>
|
156
|
+
<td data-value="13" class="abs medium">9/13</td>
|
157
|
+
<td data-value="100" class="pct high">100%</td>
|
158
|
+
<td data-value="0" class="abs high">0/0</td>
|
159
|
+
<td data-value="33.33" class="pct low">33.33%</td>
|
160
|
+
<td data-value="3" class="abs low">1/3</td>
|
161
|
+
<td data-value="69.23" class="pct medium">69.23%</td>
|
162
|
+
<td data-value="13" class="abs medium">9/13</td>
|
163
|
+
</tr>
|
164
|
+
|
165
|
+
<tr>
|
166
|
+
<td class="file high" data-value="UserContext.tsx"><a href="UserContext.tsx.html">UserContext.tsx</a></td>
|
167
|
+
<td data-value="87.5" class="pic high">
|
168
|
+
<div class="chart"><div class="cover-fill" style="width: 87%"></div><div class="cover-empty" style="width: 13%"></div></div>
|
169
|
+
</td>
|
170
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
171
|
+
<td data-value="8" class="abs high">7/8</td>
|
172
|
+
<td data-value="100" class="pct high">100%</td>
|
173
|
+
<td data-value="0" class="abs high">0/0</td>
|
174
|
+
<td data-value="50" class="pct medium">50%</td>
|
175
|
+
<td data-value="2" class="abs medium">1/2</td>
|
176
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
177
|
+
<td data-value="8" class="abs high">7/8</td>
|
178
|
+
</tr>
|
179
|
+
|
180
|
+
<tr>
|
181
|
+
<td class="file medium" data-value="VideosContext.tsx"><a href="VideosContext.tsx.html">VideosContext.tsx</a></td>
|
182
|
+
<td data-value="69.23" class="pic medium">
|
183
|
+
<div class="chart"><div class="cover-fill" style="width: 69%"></div><div class="cover-empty" style="width: 31%"></div></div>
|
184
|
+
</td>
|
185
|
+
<td data-value="69.23" class="pct medium">69.23%</td>
|
186
|
+
<td data-value="13" class="abs medium">9/13</td>
|
187
|
+
<td data-value="100" class="pct high">100%</td>
|
188
|
+
<td data-value="0" class="abs high">0/0</td>
|
189
|
+
<td data-value="33.33" class="pct low">33.33%</td>
|
190
|
+
<td data-value="3" class="abs low">1/3</td>
|
191
|
+
<td data-value="69.23" class="pct medium">69.23%</td>
|
192
|
+
<td data-value="13" class="abs medium">9/13</td>
|
193
|
+
</tr>
|
194
|
+
|
195
|
+
<tr>
|
196
|
+
<td class="file high" data-value="index.ts"><a href="index.ts.html">index.ts</a></td>
|
197
|
+
<td data-value="100" class="pic high">
|
198
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
199
|
+
</td>
|
200
|
+
<td data-value="100" class="pct high">100%</td>
|
201
|
+
<td data-value="8" class="abs high">8/8</td>
|
202
|
+
<td data-value="100" class="pct high">100%</td>
|
203
|
+
<td data-value="0" class="abs high">0/0</td>
|
204
|
+
<td data-value="100" class="pct high">100%</td>
|
205
|
+
<td data-value="0" class="abs high">0/0</td>
|
206
|
+
<td data-value="100" class="pct high">100%</td>
|
207
|
+
<td data-value="8" class="abs high">8/8</td>
|
208
|
+
</tr>
|
209
|
+
|
210
|
+
</tbody>
|
211
|
+
</table>
|
212
|
+
</div>
|
213
|
+
<div class='push'></div><!-- for sticky footer -->
|
214
|
+
</div><!-- /wrapper -->
|
215
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
216
|
+
Code coverage generated by
|
217
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
218
|
+
at Sat Oct 23 2021 10:01:51 GMT+0200 (Central European Summer Time)
|
219
|
+
</div>
|
220
|
+
</div>
|
221
|
+
<script src="../../../prettify.js"></script>
|
222
|
+
<script>
|
223
|
+
window.onload = function () {
|
224
|
+
prettyPrint();
|
225
|
+
};
|
226
|
+
</script>
|
227
|
+
<script src="../../../sorter.js"></script>
|
228
|
+
<script src="../../../block-navigation.js"></script>
|
229
|
+
</body>
|
230
|
+
</html>
|
231
|
+
|