Skip to content

Commit

Permalink
style: try to fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
KyryloKireiev authored and GlugovGrGlib committed Sep 19, 2024
1 parent a2f628c commit 18777d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/CookiePolicyBanner/CookiePolicyBanner.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import userEvent from '@testing-library/user-event';
import { StatusAlert } from '@edx/paragon';

import CookiePolicyBanner from '.';
import {
Expand All @@ -29,7 +28,6 @@ describe('CookiePolicyBanner', () => {
const expectedLanguageCode = ENGLISH_LANGUAGE_CODE;
const expectedWrapperAriaLabel = IETF_TAGS_TO_CONTAINER_ROLE_LABEL[expectedTag];
const expectedPolicyHTML = 'foobar';
const expectedDialog = <span dangerouslySetInnerHTML={{ __html: expectedPolicyHTML }} />;

createHasViewedCookieBanner.mockImplementation(() => {});
getIETFTag.mockImplementation(() => expectedTag);
Expand All @@ -48,7 +46,7 @@ describe('CookiePolicyBanner', () => {
expect(wrapperDiv).toHaveAttribute('aria-live', 'polite');
};

const isValidStatusAlert = ({ statusAlert, open }) => {
const isValidStatusAlert = ({ statusAlert }) => {
expect(statusAlert).toHaveClass('edx-cookie-banner');
expect(statusAlert).toHaveAttribute('role', 'alert');
expect(statusAlert).toContainElement(screen.getByText('foobar'));
Expand Down

0 comments on commit 18777d4

Please sign in to comment.