* chore: add activating paid subscription in e2e on both self-hosted and home-server setup * chore: fix activating premium features on e2e test suites * chore: remove unnecessary sleep duplication * chore: add defining the subscription expires at date in e2e
16 lines
380 B
JavaScript
16 lines
380 B
JavaScript
import * as Defaults from './Defaults.js'
|
|
|
|
export async function publishMockedEvent(eventType, eventPayload) {
|
|
await fetch(`${Defaults.getDefaultMockedEventServiceUrl()}/events`, {
|
|
method: 'POST',
|
|
headers: {
|
|
Accept: 'application/json',
|
|
'Content-Type': 'application/json',
|
|
},
|
|
body: JSON.stringify({
|
|
eventType,
|
|
eventPayload,
|
|
}),
|
|
})
|
|
}
|