Skip to content

Commit

Permalink
feat: better test
Browse files Browse the repository at this point in the history
  • Loading branch information
koresar committed Dec 4, 2023
1 parent 68fffb2 commit befc781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/book.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,12 @@ describe("book", function () {

it("should sort accounts alphabetically", async () => {
const book1 = new Book("MyBook-listAccounts sorting 1");
await book1.entry("MyBook-listAccounts sorting 1").credit("Assets", 1).debit("Income:Rent Taxable", 1).commit();
await book1.entry("MyBook-listAccounts sorting 1").debit("Income:Rent Taxable", 1).credit("Assets", 1).commit();
await book1.entry("MyBook-listAccounts sorting 1").credit("Liabilities", 1).debit("Client Custody", 1).commit();
const accounts1 = await book1.listAccounts();

const book2 = new Book("MyBook-listAccounts sorting 2");
await book2.entry("MyBook-listAccounts sorting 2").credit("Liabilities", 2).debit("Client Custody", 2).commit();
await book2.entry("MyBook-listAccounts sorting 2").debit("Client Custody", 2).credit("Liabilities", 2).commit();
await book2.entry("MyBook-listAccounts sorting 2").credit("Assets", 3).debit("Income:Rent Taxable", 3).commit();
const accounts2 = await book2.listAccounts();

Expand Down

0 comments on commit befc781

Please sign in to comment.