Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Object auto-formatted into one very long line #89

Open
Tracked by #3921
ByronBecker opened this issue Mar 1, 2023 · 1 comment
Open
Tracked by #3921

Object auto-formatted into one very long line #89

ByronBecker opened this issue Mar 1, 2023 · 1 comment

Comments

@ByronBecker
Copy link

In my tests, I had an object formatted such that each property was on a new line and then the formatter did this to it 😅

M.equals(testableItemGetTransactionsResult({ results = [{ timestamp = timestamp_1; customerId = Principal.fromText("aaaaa-aa"); transaction = #topup({ icpCharged = { e8s = 1 }; cyclesToppedUpWith = 1_000_000_000_000; canisterId = Principal.fromText("aaaaa-aa") }); transactionId = "0" }, { timestamp = timestamp_1; customerId = Principal.fromText("aaaaa-aa"); transaction = #topup({ icpCharged = { e8s = 2 }; cyclesToppedUpWith = 2_000_000_000_000; canisterId = Principal.fromText("aaaaa-aa") }); transactionId = "1" }, { timestamp = timestamp_2; customerId = Principal.fromText("aaaaa-aa"); transaction = #topup({ icpCharged = { e8s = 3 }; cyclesToppedUpWith = 3_000_000_000_000; canisterId = Principal.fromText("aaaaa-aa") }); transactionId = "2" }, { timestamp = timestamp_2; customerId = Principal.fromText("renrk-eyaaa-aaaaa-aaada-cai"); transaction = #topup({ icpCharged = { e8s = 4 }; cyclesToppedUpWith = 3_000_000_000_000; canisterId = Principal.fromText("aaaaa-aa") }); transactionId = "3" }]; nextKey = null })),

Here's some more context

// within a matchers suite
    test(
      "gets all transactions in the transaction history if the timestamp bounds and limit are sufficient",
      TransactionHistory.getTransactions(
        preseededTransactionHistory,
        timestamp_1 / 1_000_000,
        timestamp_2 / 1_000_000,
        10,
      ),
      M.equals(testableItemGetTransactionsResult({ results = [{ timestamp = timestamp_1; customerId = Principal.fromText("aaaaa-aa"); transaction = #topup({ icpCharged = { e8s = 1 }; cyclesToppedUpWith = 1_000_000_000_000; canisterId = Principal.fromText("aaaaa-aa") }); transactionId = "0" }, { timestamp = timestamp_1; customerId = Principal.fromText("aaaaa-aa"); transaction = #topup({ icpCharged = { e8s = 2 }; cyclesToppedUpWith = 2_000_000_000_000; canisterId = Principal.fromText("aaaaa-aa") }); transactionId = "1" }, { timestamp = timestamp_2; customerId = Principal.fromText("aaaaa-aa"); transaction = #topup({ icpCharged = { e8s = 3 }; cyclesToppedUpWith = 3_000_000_000_000; canisterId = Principal.fromText("aaaaa-aa") }); transactionId = "2" }, { timestamp = timestamp_2; customerId = Principal.fromText("renrk-eyaaa-aaaaa-aaada-cai"); transaction = #topup({ icpCharged = { e8s = 4 }; cyclesToppedUpWith = 3_000_000_000_000; canisterId = Principal.fromText("aaaaa-aa") }); transactionId = "3" }]; nextKey = null })),
    ),
@rvanasa
Copy link
Contributor

rvanasa commented Mar 1, 2023

Yeah, that doesn't look right, haha. I'll take a look at this when I get a chance after ETHDenver.

@crusso crusso mentioned this issue Apr 4, 2023
79 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants