From 623a6c383708601bb2cd323b6f5d6ad98afda81d Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 22 Feb 2021 11:26:11 +0100 Subject: [PATCH] Clean up code --- client/.babelrc | 2 +- client/cypress/integration/current-module.spec.js | 12 ++++++------ client/src/helpers/visibility.js | 1 - 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/client/.babelrc b/client/.babelrc index 8823732d..2bf471ab 100644 --- a/client/.babelrc +++ b/client/.babelrc @@ -5,7 +5,7 @@ "targets": { "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] } - }], + }] ], "plugins": [ "transform-vue-jsx", diff --git a/client/cypress/integration/current-module.spec.js b/client/cypress/integration/current-module.spec.js index 13874ce4..8a195239 100644 --- a/client/cypress/integration/current-module.spec.js +++ b/client/cypress/integration/current-module.spec.js @@ -17,12 +17,12 @@ const topic = { return { node: module, __typename: 'ModuleNodeEdge' - } + }; }) ] } } -} +}; Cypress.Commands.add('checkHome', (n, skipHome) => { if (!skipHome) { @@ -71,7 +71,7 @@ describe('Current Module', () => { '__typename': 'UserNode', 'permissions': [] } - } + }; }, AssignmentsQuery: { assignments @@ -79,7 +79,7 @@ describe('Current Module', () => { ModulesQuery: variables => { return { module: fullModules[variables.slug] - } + }; }, TopicsQuery: topics, Topic: topic, @@ -95,7 +95,7 @@ describe('Current Module', () => { lastModule: moduleTeasers[variables.input.id], __typename: 'UpdateLastModulePayload' } - } + }; } } }); @@ -150,5 +150,5 @@ describe('Current Module', () => { cy.get('[data-cy=start-module-teaser]').first().should('contain', 'Lerntipps'); cy.get('[data-cy=start-module-teaser]').eq(1).should('contain', 'Random'); cy.get('[data-cy=start-module-teaser]').eq(2).should('contain', 'Geld'); - }) + }); }); diff --git a/client/src/helpers/visibility.js b/client/src/helpers/visibility.js index 152e2eab..9d8eb14c 100644 --- a/client/src/helpers/visibility.js +++ b/client/src/helpers/visibility.js @@ -68,7 +68,6 @@ export const hidden = ({ // otherwise, is it explicitly hidden for this school class? : containsClass(hiddenFor, schoolClass); case CHAPTER_TITLE_TYPE: - console.log(containsClass(titleHiddenFor, schoolClass)); return containsClass(titleHiddenFor, schoolClass); case CHAPTER_DESCRIPTION_TYPE: return containsClass(descriptionHiddenFor, schoolClass);