From befc7816a7524d398e363cb33c5d859e8214aac3 Mon Sep 17 00:00:00 2001 From: koresar Date: Mon, 4 Dec 2023 21:36:28 +1100 Subject: [PATCH] feat: better test --- spec/book.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/book.spec.ts b/spec/book.spec.ts index 686e8a6..cd3f391 100644 --- a/spec/book.spec.ts +++ b/spec/book.spec.ts @@ -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();