Skip to content

Commit

Permalink
fix: code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Oct 16, 2024
1 parent e653928 commit 8c2c64c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/homePage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class TestHelper {

constructor(args: TestHelperInput) {
this.currentMember = JSON.parse(JSON.stringify(args.currentMember));
this.setupServer();
}

setupServer() {
Expand Down Expand Up @@ -75,9 +74,10 @@ class TestHelper {
}

describe('Upload Avatar', () => {
let helpers: TestHelper;
beforeEach(() => {
// eslint-disable-next-line no-new
new TestHelper({ currentMember: BOB });
helpers = new TestHelper({ currentMember: BOB });
helpers.setupServer();
cy.visit('/');
});

Expand Down
5 changes: 2 additions & 3 deletions cypress/e2e/settings/exportData.cy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { SETTINGS_PATH } from '@/config/paths';
import { EXPORT_DATA_BUTTON_ID } from '@/config/selectors';

import { SETTINGS_PATH } from '../../../src/config/paths';
import { EXPORT_DATA_BUTTON_ID } from '../../../src/config/selectors';
import { CURRENT_MEMBER } from '../../fixtures/members';

describe('Check exporting data', () => {
Expand Down

0 comments on commit 8c2c64c

Please sign in to comment.