UNPKG
onesignal-web-sdk
Version:
latest (1.2.1)
1.2.1
1.2.0
Web push notifications from OneSignal.
onesignal-web-sdk
/
test
/
support
/
tester
/
typify.ts
10 lines
(7 loc)
•
255 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
ava, {
RegisterContextual
}
from
'ava'
;
export
function
beforeEach<T>(
getContext
:
() =>
Promise
<T>):
RegisterContextual
<T> { ava.
beforeEach
(
async
t => {
Object
.
assign
(t.
context
,
await
getContext
()); });
return
ava; }