Files
standardnotes-app-web/packages/snjs/mocha/lib/HomeServer.js
Karol Sójko 5f557c27aa chore: add quota usage e2e tests (#2438)
* 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
2023-08-23 13:55:14 +02:00

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,
}),
})
}