add client and OS info to amplitude events

closes #7865
This commit is contained in:
Phillip Thelen
2016-08-02 16:45:06 +02:00
committed by Blade Barringer
parent e3c40aa142
commit 679378331d
37 changed files with 320 additions and 40 deletions

View File

@@ -23,6 +23,10 @@ describe('payments/index', () => {
},
customerId: 'customer-id',
paymentMethod: 'Payment Method',
headers: {
'x-client': 'habitica-web',
'user-agent': '',
},
};
plan = {
@@ -160,6 +164,10 @@ describe('payments/index', () => {
quantity: 1,
gift: true,
purchaseValue: 15,
headers: {
'x-client': 'habitica-web',
'user-agent': '',
},
});
});
});
@@ -227,6 +235,10 @@ describe('payments/index', () => {
quantity: 1,
gift: false,
purchaseValue: 15,
headers: {
'x-client': 'habitica-web',
'user-agent': '',
},
});
});
});
@@ -429,6 +441,10 @@ describe('payments/index', () => {
data = {
user,
paymentMethod: 'payment',
headers: {
'x-client': 'habitica-web',
'user-agent': '',
},
};
});