Skip to content

Commit

Permalink
fix relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
jkafader-esnet committed Nov 5, 2024
1 parent e39fc4f commit cc4368f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/react/CustomTextArea.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React from 'react';
import { fireEvent, render, screen } from '@testing-library/react';
import '@testing-library/dom';
import { CustomTextArea, CustomTextAreaSettings } from '../src/components/CustomTextArea';
import { CustomTextArea, CustomTextAreaSettings } from '../../src/components/CustomTextArea';
import { StandardEditorsRegistryItem } from '@grafana/data';

import renderer from 'react-test-renderer';

const mockItem: StandardEditorsRegistryItem<string, CustomTextAreaSettings> = {
editor: CustomTextArea,
id: 'some-mock-id',
Expand All @@ -18,7 +20,7 @@ describe('CustomTextArea', () => {
it('renders just the text field with the default data', () => {
const onChangeCb = jest.fn();
render(
// @ts-ignore: bad typing from React.FC or React.VFC; potentially resolved with React 18

<CustomTextArea
value={'Some default value'}
onChange={onChangeCb}
Expand All @@ -33,7 +35,7 @@ describe('CustomTextArea', () => {
const onChangeCb = jest.fn();
const unEscapedText = "Git's diffs are known for using <<< & >>> as tokens.";
const component = render(
// @ts-ignore: bad typing from React.FC or React.VFC; potentially resolved with React 18

<CustomTextArea
value={""}
onChange={onChangeCb}
Expand Down

0 comments on commit cc4368f

Please sign in to comment.