test: improve test resiliency again (#345)
This commit is contained in:
parent
9eece6c3e2
commit
ad490854ce
|
@ -14,11 +14,15 @@ import { DEFAULT_CATEGORY_SORTING, DEFAULT_SKIN_TONE_EMOJI } from '../../../src/
|
|||
|
||||
describe('attributes tests', () => {
|
||||
beforeEach(async () => {
|
||||
basicBeforeEach()
|
||||
mockFrenchDataSource()
|
||||
await basicBeforeEach()
|
||||
await mockFrenchDataSource()
|
||||
await tick(40)
|
||||
})
|
||||
afterEach(async () => {
|
||||
await tick(40)
|
||||
await basicAfterEach()
|
||||
await tick(40)
|
||||
})
|
||||
|
||||
afterEach(basicAfterEach)
|
||||
|
||||
test('setting initial locale/dataSource issues only one GET', async () => {
|
||||
const picker = new Picker()
|
||||
|
|
|
@ -4,11 +4,15 @@ import { DEFAULT_DATA_SOURCE } from '../../../src/database/constants'
|
|||
|
||||
describe('properties', () => {
|
||||
beforeEach(async () => {
|
||||
basicBeforeEach()
|
||||
mockFrenchDataSource()
|
||||
await basicBeforeEach()
|
||||
await mockFrenchDataSource()
|
||||
await tick(40)
|
||||
})
|
||||
afterEach(async () => {
|
||||
await tick(40)
|
||||
await basicAfterEach()
|
||||
await tick(40)
|
||||
})
|
||||
|
||||
afterEach(basicAfterEach)
|
||||
|
||||
test('setting initial dataSource and locale', async () => {
|
||||
const picker = new Picker()
|
||||
|
|
Loading…
Reference in New Issue