test: refactor flakey test to use app context

This commit is contained in:
moughxyz
2023-01-16 09:53:39 -06:00
parent 854f1654d1
commit 2f07f7a3d1
3 changed files with 25 additions and 45 deletions

View File

@@ -51,8 +51,8 @@ export async function createAppContextWithRealCrypto(identifier) {
return createAppContext({ identifier, crypto: new SNWebCrypto() })
}
export async function createAppContext({ identifier, crypto, email, password } = {}) {
const context = new AppContext({ identifier, crypto, email, password })
export async function createAppContext({ identifier, crypto, email, password, host } = {}) {
const context = new AppContext({ identifier, crypto, email, password, host })
await context.initialize()
return context
}