Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gambinish committed Aug 27, 2024
1 parent c685a02 commit 32691fd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions app/scripts/migrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ const migrations = [
require('./125'),
require('./126'),
require('./127'),
require('./128'),
];

export default migrations;
4 changes: 2 additions & 2 deletions shared/constants/swaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
ETH_TOKEN_IMAGE_URL,
TEST_ETH_TOKEN_IMAGE_URL,
BNB_TOKEN_IMAGE_URL,
MATIC_TOKEN_IMAGE_URL,
POL_TOKEN_IMAGE_URL,
AVAX_TOKEN_IMAGE_URL,
CURRENCY_SYMBOLS,
CHAIN_IDS,
Expand Down Expand Up @@ -74,7 +74,7 @@ export const MATIC_SWAPS_TOKEN_OBJECT: SwapsTokenObject = {
name: 'Matic',
address: DEFAULT_TOKEN_ADDRESS,
decimals: 18,
iconUrl: MATIC_TOKEN_IMAGE_URL,
iconUrl: POL_TOKEN_IMAGE_URL,
} as const;

export const AVAX_SWAPS_TOKEN_OBJECT: SwapsTokenObject = {
Expand Down
2 changes: 2 additions & 0 deletions ui/components/app/add-network/add-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const AddNetwork = () => {
const history = useHistory();
const networkConfigurations = useSelector(getNetworkConfigurations);

console.log('networkConfigurations', networkConfigurations);

const networkConfigurationChainIds = Object.values(networkConfigurations).map(
(net) => net.chainId,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ exports[`NetworkListItem renders properly 1`] = `
<div
class="mm-box mm-text mm-avatar-base mm-avatar-base--size-md mm-avatar-network mm-text--body-sm mm-text--text-transform-uppercase mm-box--display-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-text-default mm-box--background-color-background-alternative mm-box--rounded-full mm-box--border-color-transparent box--border-style-solid box--border-width-1"
>
<img
alt="Polygon logo"
class="mm-avatar-network__network-image"
src="./images/matic-token.svg"
/>
P
</div>
<div
class="mm-box multichain-network-list-item__network-name mm-box--display-flex mm-box--align-items-center"
Expand Down
4 changes: 2 additions & 2 deletions ui/components/ui/token-input/token-input.component.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('TokenInput Component', () => {
metamask: {
...mockState.metamask,
currencyRates: {
[CURRENCY_SYMBOLS.MATIC]: {
[CURRENCY_SYMBOLS.POL]: {
conversionRate: 1,
},
},
Expand All @@ -84,7 +84,7 @@ describe('TokenInput Component', () => {
mockStore,
);

expect(queryByTitle('0 MATIC')).toBeInTheDocument();
expect(queryByTitle('0 POL')).toBeInTheDocument();
});

it('should render showFiat', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ describe('AssetPill', () => {
{
chainId: CHAIN_IDS.POLYGON,
expected: {
ticker: 'MATIC',
imgSrc: './images/matic-token.svg',
ticker: 'POL',
imgSrc: './images/pol-token.svg',
},
},
];
Expand Down

0 comments on commit 32691fd

Please sign in to comment.