misc, fix client tests

This commit is contained in:
Matteo Pagliazzi
2019-10-15 15:32:53 +02:00
parent ed7a54dfd6
commit 0bac3c0b5f
65 changed files with 136 additions and 78 deletions

View File

@@ -17,11 +17,11 @@ async function createGroup (name, privacy, type, leaderId) {
return Promise.all([group.save(), user.save()]);
}
module.exports = async function groupCreator () {
export default async function groupCreator () {
const name = process.argv[2];
const privacy = process.argv[3];
const type = process.argv[4];
const leaderId = process.argv[5];
await createGroup(name, privacy, type, leaderId);
};
}