Fix tests

This commit is contained in:
Girish Ramakrishnan
2021-11-17 11:14:33 -08:00
parent a7fe7b0aa3
commit 515b1db9d0
6 changed files with 10 additions and 8 deletions

View File

@@ -81,6 +81,8 @@ async function setup() {
// HACK to get a token for second user (passwords are generated and the user should have gotten a password setup link...)
const token = await tokens.add({ identifier: user.id, clientId: 'test-client-id', expires: Date.now() + (60 * 60 * 1000), name: 'fromtest' });
user.token = token.accessToken;
await settings._set(settings.CLOUDRON_TOKEN_KEY, exports.appstoreToken); // appstore token
}
async function cleanup() {