Skip to content

Commit

Permalink
refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Jul 10, 2024
1 parent 7ba20a6 commit bbe1986
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { render, screen, waitFor, fireEvent, cleanup } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

import { MockedProvider } from '@apollo/client/testing';
import axios from 'axios';
import { Route, MemoryRouter, Routes } from 'react-router-dom';
Expand Down Expand Up @@ -471,7 +470,7 @@ describe('translates the template', () => {
});
});

test('it translates an already exisiting template', async () => {
test('it shows error on translating an already exisiting template', async () => {
render(renderInteractiveMessage('1', [translateInteractiveTemplateMock(true)]));

await waitFor(() => {
Expand Down
6 changes: 3 additions & 3 deletions src/containers/Template/Form/Template.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { vi } from 'vitest';

import * as FormLayout from 'containers/Form/FormLayout';
import Template from './Template';
import { TEMPLATE_MOCKS, getSpeendSendTemplate } from '../Template.test.helper';
import { TEMPLATE_MOCKS, getSpendSendTemplate } from '../Template.test.helper';
import { HSM_TEMPLATE_MOCKS, templateFormHSMFormFields } from './Template.test.helper';

beforeEach(() => {
Expand All @@ -14,8 +14,8 @@ beforeEach(() => {
const defaultMocks = [
...TEMPLATE_MOCKS,
...TEMPLATE_MOCKS,
getSpeendSendTemplate,
getSpeendSendTemplate,
getSpendSendTemplate,
getSpendSendTemplate,
];

const defaultProps = {
Expand Down

0 comments on commit bbe1986

Please sign in to comment.