fix(tests): Add timeout on all async tests

This commit is contained in:
smizrahi
2024-09-26 21:02:50 +02:00
parent 59d48cb382
commit 64f17880c7
20 changed files with 84 additions and 4 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
import config from '../lib/config'
import { default as WebDAV, DAVInverse } from '../lib/WebDAV'
beforeAll(function () {
jasmine.DEFAULT_TIMEOUT_INTERVAL = config.timeout || 10000;
});
describe('calendar classification', function() {
const webdav = new WebDAV(config.username, config.password)
@@ -35,7 +39,7 @@ describe('calendar classification', function() {
expect(status)
.withContext('Setting an invalid classification')
.toBe(403)
})
})
it('setting a valid classification', async function() {
for (let component of ['events', 'tasks']) {