Skip to content

Commit

Permalink
fix/header import fix
Browse files Browse the repository at this point in the history
header import fix
  • Loading branch information
AndriiBogomolov committed Oct 31, 2024
1 parent 9fe683f commit a40d0f0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import { Routes, Route, Navigate, useNavigate } from 'react-router-dom';
import Header from './components/header/Header';
import Header from './components/Header/Header';
import Dashboard from 'pages/spotnet/dashboard/Dashboard';
import Footer from 'components/Footer/Footer';
import SpotnetApp from 'pages/spotnet/spotnet_app/SpotnetApp';
Expand Down
3 changes: 1 addition & 2 deletions frontend/test/utils/contract.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { connect } from 'get-starknet';
import axios from 'axios';
import { deployContract, checkAndDeployContract } from '../../src/utils/contract';
import { getDeployContractData } from 'src/utils/constants';
import { getDeployContractData } from '../../src/utils/constants';
import { mockBackendUrl } from '../constants';

jest.mock('get-starknet');
Expand All @@ -16,7 +16,6 @@ describe('Contract Deployment Tests', () => {
beforeEach(() => {
jest.clearAllMocks();

/* eslint-disable-next-line no-undef */
process.env.REACT_APP_BACKEND_URL = mockBackendUrl;

getDeployContractData.mockReturnValue({
Expand Down
2 changes: 1 addition & 1 deletion frontend/test/utils/transaction.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { connect } from 'get-starknet';
import { sendTransaction, closePosition, handleTransaction } from 'src/utils/transaction';
import { sendTransaction, closePosition, handleTransaction } from '../../src/utils/transaction';
import axios from 'axios';
import { mockBackendUrl } from '../constants';

Expand Down
4 changes: 2 additions & 2 deletions frontend/test/utils/wallet.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ describe('Wallet Functions', () => {

expect(connect).toHaveBeenCalledWith({
include: ['argentX', 'braavos'],
modalMode: "alwaysAsk",
modalTheme: "light",
modalMode: 'alwaysAsk',
modalTheme: 'light',
});
expect(mockStarknet.enable).toHaveBeenCalled();
expect(address).toBe('0x123');
Expand Down

0 comments on commit a40d0f0

Please sign in to comment.