From 874b34211c049b4eef185893cf84febdca3a8825 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Thu, 7 Nov 2019 00:55:21 +0100 Subject: [PATCH] Fix lint --- backend/src/seed/factories/index.js | 30 ++++++++--------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/backend/src/seed/factories/index.js b/backend/src/seed/factories/index.js index daf2147dc..2c96c8698 100644 --- a/backend/src/seed/factories/index.js +++ b/backend/src/seed/factories/index.js @@ -35,34 +35,21 @@ export const cleanDatabase = async (options = {}) => { } export default function Factory(options = {}) { - const { - neo4jDriver = getDriver(), - neodeInstance = neode(), - } = options + const { neo4jDriver = getDriver(), neodeInstance = neode() } = options const result = { neo4jDriver, factories, lastResponse: null, neodeInstance, - async authenticateAs({ email, password }) { - const headers = await authenticatedHeaders( - { - email, - password, - }, - ) - this.lastResponse = headers - return this - }, async create(node, args = {}) { - const { factory } = this.factories[node](args) - this.lastResponse = await factory({ - args, - neodeInstance, - factoryInstance: this, - }) - return this.lastResponse + const { factory } = this.factories[node](args) + this.lastResponse = await factory({ + args, + neodeInstance, + factoryInstance: this, + }) + return this.lastResponse }, async cleanDatabase() { @@ -72,7 +59,6 @@ export default function Factory(options = {}) { return this }, } - result.authenticateAs.bind(result) result.create.bind(result) result.cleanDatabase.bind(result) return result