2022-11-07 19:06:58 +01:00
|
|
|
import { userTests } from './user.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'
|
2022-11-12 17:33:55 +01:00
|
|
|
import { personTests } from './person.mjs'
|
2022-11-16 15:07:24 +01:00
|
|
|
import { patternTests } from './pattern.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) => {
|
2022-11-14 17:50:34 +01:00
|
|
|
await userTests(...params)
|
|
|
|
await apikeyTests(...params)
|
|
|
|
await accountTests(...params)
|
2022-11-12 17:33:55 +01:00
|
|
|
await personTests(...params)
|
2022-11-16 15:07:24 +01:00
|
|
|
await patternTests(...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)
|