2022-11-07 19:06:58 +01:00
|
|
|
import { userTests } from './user.mjs'
|
2022-11-17 20:41:21 +01:00
|
|
|
import { mfaTests } from './mfa.mjs'
|
2022-11-07 20:42:07 +01:00
|
|
|
import { accountTests } from './account.mjs'
|
2022-11-07 19:06:58 +01:00
|
|
|
import { apikeyTests } from './apikey.mjs'
|
2023-02-26 16:04:12 +01:00
|
|
|
import { setTests } from './set.mjs'
|
2023-08-18 18:31:24 +02:00
|
|
|
import { bookmarkTests } from './bookmark.mjs'
|
2023-05-07 12:00:43 +02:00
|
|
|
import { curatedSetTests } from './curated-set.mjs'
|
2022-11-16 15:07:24 +01:00
|
|
|
import { patternTests } from './pattern.mjs'
|
2023-08-05 18:42:52 +02:00
|
|
|
import { subscriberTests } from './subscriber.mjs'
|
2023-08-13 09:39:05 +02:00
|
|
|
import { flowTests } from './flow.mjs'
|
2022-11-07 19:06:58 +01:00
|
|
|
import { setup } from './shared.mjs'
|
|
|
|
|
2022-11-10 20:09:30 +01:00
|
|
|
const runTests = async (...params) => {
|
2023-08-20 18:35:19 +02:00
|
|
|
await userTests(...params)
|
|
|
|
await mfaTests(...params)
|
|
|
|
await apikeyTests(...params)
|
|
|
|
await accountTests(...params)
|
|
|
|
await setTests(...params)
|
2023-08-18 18:31:24 +02:00
|
|
|
await bookmarkTests(...params)
|
2023-08-20 18:35:19 +02:00
|
|
|
await curatedSetTests(...params)
|
|
|
|
await patternTests(...params)
|
|
|
|
await subscriberTests(...params)
|
|
|
|
await flowTests(...params)
|
2022-11-07 19:06:58 +01:00
|
|
|
}
|
|
|
|
|
2022-11-10 20:09:30 +01:00
|
|
|
// Load initial data required for tests
|
|
|
|
const { chai, config, expect, store } = await setup()
|
2022-11-07 19:06:58 +01:00
|
|
|
|
2022-11-10 20:09:30 +01:00
|
|
|
// Note run the tests using this data
|
|
|
|
runTests(chai, config, expect, store)
|