* chore: add quota usage e2e tests * chore: add moving from shared to shared vault quota e2e test * chore: fix test suite name * chore: fix awaiting for notifications to propagate * chore: fix awaiting for notifications processing
18 lines
460 B
JavaScript
18 lines
460 B
JavaScript
import * as Defaults from './Defaults.js'
|
|
|
|
export async function activatePremiumFeatures(username, subscriptionPlanName, endsAt, uploadBytesLimit) {
|
|
await fetch(`${Defaults.getDefaultHost()}/e2e/activate-premium`, {
|
|
method: 'POST',
|
|
headers: {
|
|
Accept: 'application/json',
|
|
'Content-Type': 'application/json',
|
|
},
|
|
body: JSON.stringify({
|
|
username,
|
|
subscriptionPlanName,
|
|
endsAt,
|
|
uploadBytesLimit,
|
|
}),
|
|
})
|
|
}
|