fix(snjs): factory timeout to propagate subscription purchase

This commit is contained in:
Karol Sójko
2022-11-24 11:40:23 +01:00
parent 858fa6835c
commit c40b17bd4c
3 changed files with 13 additions and 19 deletions

View File

@@ -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 })
// ...
})
})