pass rest session creator to scenario

This commit is contained in:
Bruno Windels 2018-09-11 14:46:25 +02:00
parent 98aafd6abb
commit afc678fea0
2 changed files with 13 additions and 2 deletions

View file

@ -28,7 +28,7 @@ const acceptServerNoticesInviteAndConsent = require('./tests/server-notices-cons
const getE2EDeviceFromSettings = require('./tests/e2e-device');
const verifyDeviceForUser = require("./tests/verify-device");
module.exports = async function scenario(createSession) {
module.exports = async function scenario(createSession, createRestSession) {
async function createUser(username) {
const session = await createSession(username);
await signup(session, session.username, 'testtest');