Skip to content

Commit

Permalink
Renamed firestore.ts to transaction.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-M-Lucas committed Apr 25, 2024
1 parent 4885106 commit c0e73e5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import './utils/firebase.ts'
import './utils/firestore.ts'
import './utils/transaction.ts'
import {RouterProvider} from "react-router-dom";
import {router} from "./router.tsx";

Expand Down
2 changes: 1 addition & 1 deletion src/pages/test firestore/TestFirestore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
overwriteTransaction,
Transaction,
writeNewTransaction
} from "../../utils/firestore.ts";
} from "../../utils/transaction.ts";
import {faker, fakerEN_GB} from "@faker-js/faker";
import {getCurrentBalance} from "../../utils/transaction_utils.ts";
import {signInWithGoogle} from "../../utils/authentication.ts";
Expand Down
4 changes: 2 additions & 2 deletions src/utils/firestore.test.ts → src/utils/transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Transaction,
writeNewTransaction,
writeNewTransactionsBatched
} from "./firestore.ts";
} from "./transaction.ts";
import {faker, fakerEN_GB} from "@faker-js/faker";
import _ from "lodash";
import { describe, expect, test } from "vitest";
Expand All @@ -27,7 +27,7 @@ function fakeTransaction(uid: string, name?: string): Transaction {
);
}

describe("Firestore Tests", () => {
describe("Firestore Transaction Tests", () => {
test("Write/Read Test", async () => {
const user = { uid: "sample_uid" }

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/utils/transaction_utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {User} from "firebase/auth";
import {getTransactions, getTransactionsFilterOrderBy, Transaction} from "./firestore.ts";
import {getTransactions, getTransactionsFilterOrderBy, Transaction} from "./transaction.ts";
import {limit, startAfter, where} from "firebase/firestore";

export async function getCurrentBalance(user: User): Promise<number> {
Expand Down

0 comments on commit c0e73e5

Please sign in to comment.