Skip to content
This repository has been archived by the owner on Mar 23, 2022. It is now read-only.

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: RaenonX <[email protected]>
  • Loading branch information
RaenonX committed Jan 12, 2022
1 parent 3ee7d71 commit c2b4f9d
Showing 1 changed file with 7 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,24 @@ import userEvent from '@testing-library/user-event';

import {renderReact} from '../../../../../../../../test/render/main';
import {
PartiallySupportedLanguages,
SupportedLanguages,
UnitInfoLookupEntry,
UnitType,
} from '../../../../../../../api-def/api';
import {makePostUrl, PostPath} from '../../../../../../../api-def/paths';
import {UnitInfoData} from '../../../../../../../api-def/resources';
import {translation as translationEN} from '../../../../../../../i18n/translations/en/translation';
import {UnitInfoRequireIcon} from '../../../../../../elements/gameData/unit/modal/types';
import {UnitInfoEntry} from './main';


describe('Analysis lookup entry', () => {
const name = {
[SupportedLanguages.CHT]: 'name CHT',
[SupportedLanguages.EN]: 'Gala Leonidas',
[SupportedLanguages.JP]: 'name JP',
[PartiallySupportedLanguages.CHS]: 'name CHS',
};

const unitInfo: UnitInfoData = {
type: UnitType.CHARACTER,
name,
const unitInfo: UnitInfoRequireIcon = {
id: 10950101,
rarity: 5,
element: 2,
iconName: 'icon',
cvEn: name,
cvJp: name,
releaseEpoch: 900000,
name: 'Gala Leonidas',
icon: {
type: UnitType.CHARACTER,
name: 'Gala Leonidas',
},
};
const analysisMeta: UnitInfoLookupEntry = {
type: UnitType.CHARACTER,
Expand Down

0 comments on commit c2b4f9d

Please sign in to comment.