Skip to content

Commit

Permalink
fix: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Feb 1, 2024
1 parent 2cb2f5a commit d0c73a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/Select/__tests__/Select.error.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';

import {render, screen} from '@testing-library/react';

import {render, screen} from '../../../../test-utils/utils';
import {CONTROL_ERROR_MESSAGE_QA} from '../../controls/utils';
import {Select} from '../Select';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/__tests__/Table.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe('Table', () => {
const expectedFlag = ROW_ID === i;

expect(row.className.includes(EXPTECTED_CLASS_NAME)).toBe(expectedFlag);
expect(row.className.includes('yc-table__row_disabled')).toBe(expectedFlag);
expect(row.className.includes('g-table__row_disabled')).toBe(expectedFlag);
});
});
});
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';

import {render, screen} from '@testing-library/react';
import userEvent from '@testing-library/user-event';

import {render, screen} from '../../../../../../test-utils/utils';
import type {TableColumnConfig} from '../../../Table';
import {Table} from '../../../Table';
import type {TableSettingsData} from '../withTableSettings';
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/useControlledState/useControlledState.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';

import {act, render, renderHook, screen} from '@testing-library/react';
import userEvent from '@testing-library/user-event';

import {act, render, renderHook, screen} from '../../../test-utils/utils';

import {useControlledState} from './useControlledState';

describe('useControlledState', function () {
Expand Down

0 comments on commit d0c73a8

Please sign in to comment.