1
0
Fork 0
freesewing/sites/backend/tests/index.mjs

23 lines
687 B
JavaScript
Raw Normal View History

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'
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'
import { patternTests } from './pattern.mjs'
2022-11-07 19:06:58 +01:00
import { setup } from './shared.mjs'
const runTests = async (...params) => {
await userTests(...params)
2022-11-17 20:41:21 +01:00
await mfaTests(...params)
await apikeyTests(...params)
await accountTests(...params)
2022-11-12 17:33:55 +01:00
await personTests(...params)
await patternTests(...params)
2022-11-07 19:06:58 +01:00
}
// Load initial data required for tests
const { chai, config, expect, store } = await setup()
2022-11-07 19:06:58 +01:00
// Note run the tests using this data
runTests(chai, config, expect, store)