appstore: set utmSource during user registration

This commit is contained in:
Girish Ramakrishnan
2022-05-18 23:30:30 -07:00
parent aa1e8dc930
commit 2596afa7b3
2 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ describe('Appstore Cloudron Registration API - existing user', function () {
it('can setup subscription', async function () {
const scope1 = nock(settings.apiServerOrigin())
.post('/api/v1/register_user', (body) => body.email && body.password)
.post('/api/v1/register_user', (body) => body.email && body.password && body.utmSource)
.reply(201, {});
const scope2 = nock(settings.apiServerOrigin())
@@ -142,7 +142,7 @@ describe('Appstore Cloudron Registration API - new user signup', function () {
it('can setup subscription', async function () {
const scope1 = nock(settings.apiServerOrigin())
.post('/api/v1/register_user', (body) => body.email && body.password)
.post('/api/v1/register_user', (body) => body.email && body.password && body.utmSource)
.reply(201, {});
const scope2 = nock(settings.apiServerOrigin())