fix(snjs): factory timeout to propagate subscription purchase
This commit is contained in:
@@ -52,7 +52,7 @@ describe('files', function () {
|
||||
billingFrequency: 12,
|
||||
payAmount: 59.00
|
||||
})
|
||||
await Factory.sleep(1)
|
||||
await Factory.sleep(2)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ describe('files', function () {
|
||||
await setup({ fakeCrypto: true, subscription: true })
|
||||
const remoteIdentifier = Utils.generateUuid()
|
||||
const token = await application.apiService.createFileValetToken(remoteIdentifier, 'write')
|
||||
console.log(token)
|
||||
|
||||
expect(token.length).to.be.above(0)
|
||||
})
|
||||
@@ -97,7 +98,7 @@ describe('files', function () {
|
||||
payAmount: 59.00
|
||||
})
|
||||
|
||||
await Factory.sleep(1)
|
||||
await Factory.sleep(2)
|
||||
|
||||
const remoteIdentifier = Utils.generateUuid()
|
||||
const tokenOrError = await application.apiService.createFileValetToken(remoteIdentifier, 'write')
|
||||
@@ -163,10 +164,4 @@ describe('files', function () {
|
||||
|
||||
expect(downloadError).to.be.ok
|
||||
})
|
||||
|
||||
it.skip('should cancel file download', async function () {
|
||||
await setup({ fakeCrypto: false, subscription: true })
|
||||
|
||||
// ...
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user