Skip to content

Commit

Permalink
feat: ApiController tests (#1946)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir authored Feb 21, 2024
1 parent dce495a commit a186076
Show file tree
Hide file tree
Showing 5 changed files with 436 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/controllers/ApiController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { OptionsController } from './OptionsController.js'

// -- Helpers ------------------------------------------- //
const baseUrl = CoreHelperUtil.getApiUrl()
const api = new FetchUtil({ baseUrl })
export const api = new FetchUtil({ baseUrl })
const entries = '40'
const recommendedEntries = '4'

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/controllers/TransactionsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface TransactionsControllerState {
// -- State --------------------------------------------- //
const state = proxy<TransactionsControllerState>({
transactions: [],
coinbaseTransactions: [],
coinbaseTransactions: {},
transactionsByYear: {},
loading: false,
empty: false,
Expand Down
Loading

0 comments on commit a186076

Please sign in to comment.