fix: subscription expiring event
This commit is contained in:
@@ -63,9 +63,9 @@ describe('files', function () {
|
|||||||
|
|
||||||
it('should create valet token from server', async function () {
|
it('should create valet token from server', async function () {
|
||||||
await setup({ fakeCrypto: true, subscription: true })
|
await setup({ fakeCrypto: true, subscription: true })
|
||||||
|
|
||||||
const remoteIdentifier = Utils.generateUuid()
|
const remoteIdentifier = Utils.generateUuid()
|
||||||
const token = await application.apiService.createFileValetToken(remoteIdentifier, 'write')
|
const token = await application.apiService.createFileValetToken(remoteIdentifier, 'write')
|
||||||
console.log(token)
|
|
||||||
|
|
||||||
expect(token.length).to.be.above(0)
|
expect(token.length).to.be.above(0)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ describe('settings service', function () {
|
|||||||
|
|
||||||
await Factory.publishMockedEvent('SUBSCRIPTION_PURCHASED', {
|
await Factory.publishMockedEvent('SUBSCRIPTION_PURCHASED', {
|
||||||
userEmail: context.email,
|
userEmail: context.email,
|
||||||
subscriptionId: 1,
|
subscriptionId: 42,
|
||||||
subscriptionName: 'PRO_PLAN',
|
subscriptionName: 'PRO_PLAN',
|
||||||
subscriptionExpiresAt: (new Date().getTime() + 3_600_000) * 1_000,
|
subscriptionExpiresAt: (new Date().getTime() + 3_600_000) * 1_000,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
@@ -173,7 +173,7 @@ describe('settings service', function () {
|
|||||||
|
|
||||||
await Factory.publishMockedEvent('SUBSCRIPTION_EXPIRED', {
|
await Factory.publishMockedEvent('SUBSCRIPTION_EXPIRED', {
|
||||||
userEmail: context.email,
|
userEmail: context.email,
|
||||||
subscriptionId: 1,
|
subscriptionId: 42,
|
||||||
subscriptionName: 'PRO_PLAN',
|
subscriptionName: 'PRO_PLAN',
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
offline: false,
|
offline: false,
|
||||||
@@ -186,7 +186,7 @@ describe('settings service', function () {
|
|||||||
|
|
||||||
await Factory.publishMockedEvent('SUBSCRIPTION_PURCHASED', {
|
await Factory.publishMockedEvent('SUBSCRIPTION_PURCHASED', {
|
||||||
userEmail: context.email,
|
userEmail: context.email,
|
||||||
subscriptionId: 2,
|
subscriptionId: 43,
|
||||||
subscriptionName: 'PRO_PLAN',
|
subscriptionName: 'PRO_PLAN',
|
||||||
subscriptionExpiresAt: (new Date().getTime() + 3_600_000) * 1_000,
|
subscriptionExpiresAt: (new Date().getTime() + 3_600_000) * 1_000,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
|
|||||||
Reference in New Issue
Block a user